home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / QuickTimeComponents.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  132.2 KB  |  2,989 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        QuickTimeComponents.p
  3.  
  4.      Contains:    QuickTime Interfaces.
  5.  
  6.      Version:    Technology:    QuickTime 3.0
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT QuickTimeComponents;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __QUICKTIMECOMPONENTS__}
  28. {$SETC __QUICKTIMECOMPONENTS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC QuickTimeComponentsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __MIXEDMODE__}
  38. {$I MixedMode.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __COMPONENTS__}
  41. {$I Components.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __IMAGECOMPRESSION__}
  44. {$I ImageCompression.p}
  45. {$ENDC}
  46. {$IFC UNDEFINED __MOVIES__}
  47. {$I Movies.p}
  48. {$ENDC}
  49. {$IFC UNDEFINED __QUICKDRAW__}
  50. {$I Quickdraw.p}
  51. {$ENDC}
  52. {$IFC UNDEFINED __VIDEO__}
  53. {$I Video.p}
  54. {$ENDC}
  55. {$IFC UNDEFINED __SOUND__}
  56. {$I Sound.p}
  57. {$ENDC}
  58. {$IFC UNDEFINED __QUICKTIMEMUSIC__}
  59. {$I QuickTimeMusic.p}
  60. {$ENDC}
  61.  
  62.  
  63. {$PUSH}
  64. {$ALIGN MAC68K}
  65. {$LibExport+}
  66.  
  67.  
  68. CONST
  69.     clockComponentType            = 'clok';
  70.     systemTickClock                = 'tick';                        {  subtype: 60ths since boot         }
  71.     systemSecondClock            = 'seco';                        {  subtype: seconds since 1904         }
  72.     systemMillisecondClock        = 'mill';                        {  subtype: 1000ths since boot         }
  73.     systemMicrosecondClock        = 'micr';                        {  subtype: 1000000ths since boot     }
  74.  
  75.     kClockRateIsLinear            = 1;
  76.     kClockImplementsCallBacks    = 2;
  77.     kClockCanHandleIntermittentSound = 4;                        {  sound clocks only  }
  78.  
  79. {* These are Clock procedures *}
  80. FUNCTION ClockGetTime(aClock: ComponentInstance; VAR out: TimeRecord): ComponentResult;
  81.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  82.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  83.     {$ENDC}
  84.  
  85. FUNCTION ClockNewCallBack(aClock: ComponentInstance; tb: TimeBase; callBackType: INTEGER): QTCallBack;
  86.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  87.     INLINE $2F3C, $0006, $0002, $7000, $A82A;
  88.     {$ENDC}
  89. FUNCTION ClockDisposeCallBack(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  90.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  91.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  92.     {$ENDC}
  93. FUNCTION ClockCallMeWhen(aClock: ComponentInstance; cb: QTCallBack; param1: LONGINT; param2: LONGINT; param3: LONGINT): ComponentResult;
  94.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  95.     INLINE $2F3C, $0010, $0004, $7000, $A82A;
  96.     {$ENDC}
  97. FUNCTION ClockCancelCallBack(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  98.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  99.     INLINE $2F3C, $0004, $0005, $7000, $A82A;
  100.     {$ENDC}
  101. FUNCTION ClockRateChanged(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  102.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  103.     INLINE $2F3C, $0004, $0006, $7000, $A82A;
  104.     {$ENDC}
  105. FUNCTION ClockTimeChanged(aClock: ComponentInstance; cb: QTCallBack): ComponentResult;
  106.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  107.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  108.     {$ENDC}
  109. FUNCTION ClockSetTimeBase(aClock: ComponentInstance; tb: TimeBase): ComponentResult;
  110.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  111.     INLINE $2F3C, $0004, $0008, $7000, $A82A;
  112.     {$ENDC}
  113. FUNCTION ClockStartStopChanged(aClock: ComponentInstance; cb: QTCallBack; startChanged: BOOLEAN; stopChanged: BOOLEAN): ComponentResult;
  114.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  115.     INLINE $2F3C, $0008, $0009, $7000, $A82A;
  116.     {$ENDC}
  117. FUNCTION ClockGetRate(aClock: ComponentInstance; VAR rate: Fixed): ComponentResult;
  118.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  119.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  120.     {$ENDC}
  121.  
  122.  
  123.  
  124.  
  125. CONST
  126.     StandardCompressionType        = 'scdi';
  127.     StandardCompressionSubType    = 'imag';
  128.     StandardCompressionSubTypeSound = 'soun';
  129.  
  130.  
  131.  
  132. TYPE
  133. {$IFC TYPED_FUNCTION_POINTERS}
  134.     SCModalFilterProcPtr = FUNCTION(theDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; refcon: LONGINT): BOOLEAN;
  135. {$ELSEC}
  136.     SCModalFilterProcPtr = ProcPtr;
  137. {$ENDC}
  138.  
  139. {$IFC TYPED_FUNCTION_POINTERS}
  140.     SCModalHookProcPtr = FUNCTION(theDialog: DialogPtr; itemHit: INTEGER; params: UNIV Ptr; refcon: LONGINT): INTEGER;
  141. {$ELSEC}
  142.     SCModalHookProcPtr = ProcPtr;
  143. {$ENDC}
  144.  
  145.     SCModalFilterUPP = UniversalProcPtr;
  146.     SCModalHookUPP = UniversalProcPtr;
  147. {     Preference flags. }
  148.  
  149. CONST
  150.     scListEveryCodec            = $00000002;
  151.     scAllowZeroFrameRate        = $00000004;
  152.     scAllowZeroKeyFrameRate        = $00000008;
  153.     scShowBestDepth                = $00000010;
  154.     scUseMovableModal            = $00000020;
  155.     scDisableFrameRateItem        = $00000040;
  156.  
  157.  
  158. {     Possible test flags for setting test image. }
  159.     scPreferCropping            = $01;
  160.     scPreferScaling                = $02;
  161.     scPreferScalingAndCropping    = $03;
  162.     scDontDetermineSettingsFromTestImage = $04;
  163.  
  164.  
  165. {     Dimensions of the image preview box. }
  166.     scTestImageWidth            = 80;
  167.     scTestImageHeight            = 80;
  168.  
  169. {     Possible items returned by hookProc. }
  170.     scOKItem                    = 1;
  171.     scCancelItem                = 2;
  172.     scCustomItem                = 3;
  173.  
  174. {     Result returned when user cancelled. }
  175.     scUserCancelled                = 1;
  176.  
  177.  
  178.  
  179. {     Get/SetInfo structures. }
  180.  
  181.  
  182. TYPE
  183.     SCSpatialSettingsPtr = ^SCSpatialSettings;
  184.     SCSpatialSettings = RECORD
  185.         codecType:                CodecType;
  186.         codec:                    CodecComponent;
  187.         depth:                    INTEGER;
  188.         spatialQuality:            CodecQ;
  189.     END;
  190.  
  191.     SCTemporalSettingsPtr = ^SCTemporalSettings;
  192.     SCTemporalSettings = RECORD
  193.         temporalQuality:        CodecQ;
  194.         frameRate:                Fixed;
  195.         keyFrameRate:            LONGINT;
  196.     END;
  197.  
  198.     SCDataRateSettingsPtr = ^SCDataRateSettings;
  199.     SCDataRateSettings = RECORD
  200.         dataRate:                LONGINT;
  201.         frameDuration:            LONGINT;
  202.         minSpatialQuality:        CodecQ;
  203.         minTemporalQuality:        CodecQ;
  204.     END;
  205.  
  206.     SCExtendedProcsPtr = ^SCExtendedProcs;
  207.     SCExtendedProcs = RECORD
  208.         filterProc:                SCModalFilterUPP;
  209.         hookProc:                SCModalHookUPP;
  210.         refcon:                    LONGINT;
  211.         customName:                Str31;
  212.     END;
  213.  
  214. {     Get/SetInfo selectors }
  215.  
  216. CONST
  217.     scSpatialSettingsType        = 'sptl';                        {  pointer to SCSpatialSettings struct }
  218.     scTemporalSettingsType        = 'tprl';                        {  pointer to SCTemporalSettings struct }
  219.     scDataRateSettingsType        = 'drat';                        {  pointer to SCDataRateSettings struct }
  220.     scColorTableType            = 'clut';                        {  pointer to CTabHandle }
  221.     scProgressProcType            = 'prog';                        {  pointer to ProgressRecord struct }
  222.     scExtendedProcsType            = 'xprc';                        {  pointer to SCExtendedProcs struct }
  223.     scPreferenceFlagsType        = 'pref';                        {  pointer to long }
  224.     scSettingsStateType            = 'ssta';                        {  pointer to Handle }
  225.     scSequenceIDType            = 'sequ';                        {  pointer to ImageSequence }
  226.     scWindowPositionType        = 'wndw';                        {  pointer to Point }
  227.     scCodecFlagsType            = 'cflg';                        {  pointer to CodecFlags }
  228.     scCodecSettingsType            = 'cdec';                        {  pointer to Handle }
  229.     scForceKeyValueType            = 'ksim';                        {  pointer to long }
  230.     scSoundSampleRateType        = 'ssrt';                        {  pointer to UnsignedFixed }
  231.     scSoundSampleSizeType        = 'ssss';                        {  pointer to short }
  232.     scSoundChannelCountType        = 'sscc';                        {  pointer to short }
  233.     scSoundCompressionType        = 'ssct';                        {  pointer to OSType }
  234.     scCompressionListType        = 'ctyl';                        {  pointer to OSType Handle }
  235.  
  236. {     scTypeNotFoundErr returned by Get/SetInfo when type cannot be found. }
  237.  
  238.  
  239.  
  240. TYPE
  241.     SCParamsPtr = ^SCParams;
  242.     SCParams = RECORD
  243.         flags:                    LONGINT;
  244.         theCodecType:            CodecType;
  245.         theCodec:                CodecComponent;
  246.         spatialQuality:            CodecQ;
  247.         temporalQuality:        CodecQ;
  248.         depth:                    INTEGER;
  249.         frameRate:                Fixed;
  250.         keyFrameRate:            LONGINT;
  251.         reserved1:                LONGINT;
  252.         reserved2:                LONGINT;
  253.     END;
  254.  
  255.  
  256. CONST
  257.     scGetCompression            = 1;
  258.     scShowMotionSettings        = $00000001;
  259.     scSettingsChangedItem        = -1;
  260.  
  261.     scCompressFlagIgnoreIdenticalFrames = 1;
  262.  
  263. {  QTAtomTypes for atoms found in settings atom containers }
  264.     kQTSettingsVideo            = 'vide';                        {  Container for video/image compression related atoms (Get/SetInfo selectors) }
  265.     kQTSettingsSound            = 'soun';                        {  Container for sound compression related atoms (Get/SetInfo selectors) }
  266.  
  267.  
  268. {* These are Progress procedures *}
  269. FUNCTION SCGetCompressionExtended(ci: ComponentInstance; VAR params: SCParams; where: Point; filterProc: SCModalFilterUPP; hookProc: SCModalHookUPP; refcon: LONGINT; customName: StringPtr): ComponentResult;
  270.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  271.     INLINE $2F3C, $0018, $0001, $7000, $A82A;
  272.     {$ENDC}
  273. FUNCTION SCPositionRect(ci: ComponentInstance; VAR rp: Rect; VAR where: Point): ComponentResult;
  274.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  275.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  276.     {$ENDC}
  277. FUNCTION SCPositionDialog(ci: ComponentInstance; id: INTEGER; VAR where: Point): ComponentResult;
  278.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  279.     INLINE $2F3C, $0006, $0003, $7000, $A82A;
  280.     {$ENDC}
  281. FUNCTION SCSetTestImagePictHandle(ci: ComponentInstance; testPict: PicHandle; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  282.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  283.     INLINE $2F3C, $000A, $0004, $7000, $A82A;
  284.     {$ENDC}
  285. FUNCTION SCSetTestImagePictFile(ci: ComponentInstance; testFileRef: INTEGER; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  286.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  287.     INLINE $2F3C, $0008, $0005, $7000, $A82A;
  288.     {$ENDC}
  289. FUNCTION SCSetTestImagePixMap(ci: ComponentInstance; testPixMap: PixMapHandle; VAR testRect: Rect; testFlags: INTEGER): ComponentResult;
  290.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  291.     INLINE $2F3C, $000A, $0006, $7000, $A82A;
  292.     {$ENDC}
  293. FUNCTION SCGetBestDeviceRect(ci: ComponentInstance; VAR r: Rect): ComponentResult;
  294.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  295.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  296.     {$ENDC}
  297.  
  298. FUNCTION SCRequestImageSettings(ci: ComponentInstance): ComponentResult;
  299.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  300.     INLINE $2F3C, $0000, $000A, $7000, $A82A;
  301.     {$ENDC}
  302. FUNCTION SCCompressImage(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR desc: ImageDescriptionHandle; VAR data: Handle): ComponentResult;
  303.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  304.     INLINE $2F3C, $0010, $000B, $7000, $A82A;
  305.     {$ENDC}
  306. FUNCTION SCCompressPicture(ci: ComponentInstance; srcPicture: PicHandle; dstPicture: PicHandle): ComponentResult;
  307.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  308.     INLINE $2F3C, $0008, $000C, $7000, $A82A;
  309.     {$ENDC}
  310. FUNCTION SCCompressPictureFile(ci: ComponentInstance; srcRefNum: INTEGER; dstRefNum: INTEGER): ComponentResult;
  311.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  312.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  313.     {$ENDC}
  314. FUNCTION SCRequestSequenceSettings(ci: ComponentInstance): ComponentResult;
  315.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  316.     INLINE $2F3C, $0000, $000E, $7000, $A82A;
  317.     {$ENDC}
  318. FUNCTION SCCompressSequenceBegin(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR desc: ImageDescriptionHandle): ComponentResult;
  319.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  320.     INLINE $2F3C, $000C, $000F, $7000, $A82A;
  321.     {$ENDC}
  322. FUNCTION SCCompressSequenceFrame(ci: ComponentInstance; src: PixMapHandle; {CONST}VAR srcRect: Rect; VAR data: Handle; VAR dataSize: LONGINT; VAR notSyncFlag: INTEGER): ComponentResult;
  323.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  324.     INLINE $2F3C, $0014, $0010, $7000, $A82A;
  325.     {$ENDC}
  326. FUNCTION SCCompressSequenceEnd(ci: ComponentInstance): ComponentResult;
  327.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  328.     INLINE $2F3C, $0000, $0011, $7000, $A82A;
  329.     {$ENDC}
  330. FUNCTION SCDefaultPictHandleSettings(ci: ComponentInstance; srcPicture: PicHandle; motion: INTEGER): ComponentResult;
  331.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  332.     INLINE $2F3C, $0006, $0012, $7000, $A82A;
  333.     {$ENDC}
  334. FUNCTION SCDefaultPictFileSettings(ci: ComponentInstance; srcRef: INTEGER; motion: INTEGER): ComponentResult;
  335.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  336.     INLINE $2F3C, $0004, $0013, $7000, $A82A;
  337.     {$ENDC}
  338. FUNCTION SCDefaultPixMapSettings(ci: ComponentInstance; src: PixMapHandle; motion: INTEGER): ComponentResult;
  339.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  340.     INLINE $2F3C, $0006, $0014, $7000, $A82A;
  341.     {$ENDC}
  342. FUNCTION SCGetInfo(ci: ComponentInstance; infoType: OSType; info: UNIV Ptr): ComponentResult;
  343.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  344.     INLINE $2F3C, $0008, $0015, $7000, $A82A;
  345.     {$ENDC}
  346. FUNCTION SCSetInfo(ci: ComponentInstance; infoType: OSType; info: UNIV Ptr): ComponentResult;
  347.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  348.     INLINE $2F3C, $0008, $0016, $7000, $A82A;
  349.     {$ENDC}
  350. FUNCTION SCNewGWorld(ci: ComponentInstance; VAR gwp: GWorldPtr; VAR rp: Rect; flags: GWorldFlags): ComponentResult;
  351.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  352.     INLINE $2F3C, $000C, $0017, $7000, $A82A;
  353.     {$ENDC}
  354. FUNCTION SCSetCompressFlags(ci: ComponentInstance; flags: LONGINT): ComponentResult;
  355.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  356.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  357.     {$ENDC}
  358. FUNCTION SCGetCompressFlags(ci: ComponentInstance; VAR flags: LONGINT): ComponentResult;
  359.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  360.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  361.     {$ENDC}
  362. FUNCTION SCGetSettingsAsText(ci: ComponentInstance; VAR text: Handle): ComponentResult;
  363.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  364.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  365.     {$ENDC}
  366. FUNCTION SCGetSettingsAsAtomContainer(ci: ComponentInstance; VAR settings: QTAtomContainer): ComponentResult;
  367.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  368.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  369.     {$ENDC}
  370. FUNCTION SCSetSettingsFromAtomContainer(ci: ComponentInstance; settings: QTAtomContainer): ComponentResult;
  371.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  372.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  373.     {$ENDC}
  374.  
  375.  
  376.  
  377.  
  378. CONST
  379.     TweenComponentType            = 'twen';
  380.  
  381.  
  382. TYPE
  383.     TweenerComponent                    = ComponentInstance;
  384.     TweenRecordPtr = ^TweenRecord;
  385. {$IFC TYPED_FUNCTION_POINTERS}
  386.     TweenerDataProcPtr = FUNCTION(VAR tr: TweenRecord; tweenData: UNIV Ptr; tweenDataSize: LONGINT; dataDescriptionSeed: LONGINT; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UNIV Ptr): ComponentResult;
  387. {$ELSEC}
  388.     TweenerDataProcPtr = ProcPtr;
  389. {$ENDC}
  390.  
  391.     TweenerDataUPP = UniversalProcPtr;
  392.     TweenRecord = RECORD
  393.         version:                LONGINT;
  394.         container:                QTAtomContainer;
  395.         tweenAtom:                QTAtom;
  396.         dataAtom:                QTAtom;
  397.         percent:                Fixed;
  398.         dataProc:                TweenerDataUPP;
  399.         private1:                Ptr;
  400.         private2:                Ptr;
  401.     END;
  402.  
  403.     TweenV1RecordPtr = ^TweenV1Record;
  404.     TweenV1Record = RECORD
  405.         version:                LONGINT;
  406.         container:                QTAtomContainer;
  407.         tweenAtom:                QTAtom;
  408.         dataAtom:                QTAtom;
  409.         percent:                Fixed;
  410.         dataProc:                TweenerDataUPP;
  411.         private1:                Ptr;
  412.         private2:                Ptr;
  413.         fractPercent:            Fract;
  414.     END;
  415.  
  416. FUNCTION TweenerInitialize(tc: TweenerComponent; container: QTAtomContainer; tweenAtom: QTAtom; dataAtom: QTAtom): ComponentResult;
  417.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  418.     INLINE $2F3C, $000C, $0001, $7000, $A82A;
  419.     {$ENDC}
  420. FUNCTION TweenerDoTween(tc: TweenerComponent; VAR tr: TweenRecord): ComponentResult;
  421.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  422.     INLINE $2F3C, $0004, $0002, $7000, $A82A;
  423.     {$ENDC}
  424. FUNCTION TweenerReset(tc: TweenerComponent): ComponentResult;
  425.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  426.     INLINE $2F3C, $0000, $0003, $7000, $A82A;
  427.     {$ENDC}
  428.  
  429.  
  430.  
  431. CONST
  432.     TCSourceRefNameType            = 'name';
  433.  
  434.     tcDropFrame                    = $01;
  435.     tc24HourMax                    = $02;
  436.     tcNegTimesOK                = $04;
  437.     tcCounter                    = $08;
  438.  
  439.  
  440. TYPE
  441.     TimeCodeDefPtr = ^TimeCodeDef;
  442.     TimeCodeDef = RECORD
  443.         flags:                    LONGINT;                                {  drop-frame, etc. }
  444.         fTimeScale:                TimeScale;                                {  time scale of frameDuration (eg. 2997) }
  445.         frameDuration:            TimeValue;                                {  duration of each frame (eg. 100) }
  446.         numFrames:                SInt8;                                    {  frames/sec for timecode (eg. 30) OR frames/tick for counter mode }
  447.         padding:                SInt8;                                    {  unused padding byte }
  448.     END;
  449.  
  450.  
  451. CONST
  452.     tctNegFlag                    = $80;                            {  negative bit is in minutes }
  453.  
  454.  
  455. TYPE
  456.     TimeCodeTimePtr = ^TimeCodeTime;
  457.     TimeCodeTime = RECORD
  458.         hours:                    SInt8;
  459.         minutes:                SInt8;
  460.         seconds:                SInt8;
  461.         frames:                    SInt8;
  462.     END;
  463.  
  464.     TimeCodeCounterPtr = ^TimeCodeCounter;
  465.     TimeCodeCounter = RECORD
  466.         counter:                LONGINT;
  467.     END;
  468.  
  469.     TimeCodeRecordPtr = ^TimeCodeRecord;
  470.     TimeCodeRecord = RECORD
  471.         CASE INTEGER OF
  472.         0: (
  473.             t:                    TimeCodeTime;
  474.             );
  475.         1: (
  476.             c:                    TimeCodeCounter;
  477.             );
  478.     END;
  479.  
  480.     TimeCodeDescriptionPtr = ^TimeCodeDescription;
  481.     TimeCodeDescription = RECORD
  482.         descSize:                LONGINT;                                {  standard sample description header }
  483.         dataFormat:                LONGINT;
  484.         resvd1:                    LONGINT;
  485.         resvd2:                    INTEGER;
  486.         dataRefIndex:            INTEGER;
  487.         flags:                    LONGINT;                                {  timecode specific stuff }
  488.         timeCodeDef:            TimeCodeDef;
  489.         srcRef:                    ARRAY [0..0] OF LONGINT;
  490.     END;
  491.  
  492.     TimeCodeDescriptionHandle            = ^TimeCodeDescriptionPtr;
  493.  
  494. CONST
  495.     tcdfShowTimeCode            = $01;
  496.  
  497.  
  498.  
  499. TYPE
  500.     TCTextOptionsPtr = ^TCTextOptions;
  501.     TCTextOptions = RECORD
  502.         txFont:                    INTEGER;
  503.         txFace:                    INTEGER;
  504.         txSize:                    INTEGER;
  505.         pad:                    INTEGER;                                {  let's make it longword aligned - thanks..  }
  506.         foreColor:                RGBColor;
  507.         backColor:                RGBColor;
  508.     END;
  509.  
  510. FUNCTION TCGetCurrentTimeCode(mh: MediaHandler; VAR frameNum: LONGINT; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; VAR srcRefH: UserData): HandlerError;
  511.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  512.     INLINE $2F3C, $0010, $0101, $7000, $A82A;
  513.     {$ENDC}
  514. FUNCTION TCGetTimeCodeAtTime(mh: MediaHandler; mediaTime: TimeValue; VAR frameNum: LONGINT; VAR tcdef: TimeCodeDef; VAR tcdata: TimeCodeRecord; VAR srcRefH: UserData): HandlerError;
  515.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  516.     INLINE $2F3C, $0014, $0102, $7000, $A82A;
  517.     {$ENDC}
  518. FUNCTION TCTimeCodeToString(mh: MediaHandler; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; tcStr: StringPtr): HandlerError;
  519.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  520.     INLINE $2F3C, $000C, $0103, $7000, $A82A;
  521.     {$ENDC}
  522. FUNCTION TCTimeCodeToFrameNumber(mh: MediaHandler; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord; VAR frameNumber: LONGINT): HandlerError;
  523.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  524.     INLINE $2F3C, $000C, $0104, $7000, $A82A;
  525.     {$ENDC}
  526. FUNCTION TCFrameNumberToTimeCode(mh: MediaHandler; frameNumber: LONGINT; VAR tcdef: TimeCodeDef; VAR tcrec: TimeCodeRecord): HandlerError;
  527.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  528.     INLINE $2F3C, $000C, $0105, $7000, $A82A;
  529.     {$ENDC}
  530. FUNCTION TCGetSourceRef(mh: MediaHandler; tcdH: TimeCodeDescriptionHandle; VAR srefH: UserData): HandlerError;
  531.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  532.     INLINE $2F3C, $0008, $0106, $7000, $A82A;
  533.     {$ENDC}
  534. FUNCTION TCSetSourceRef(mh: MediaHandler; tcdH: TimeCodeDescriptionHandle; srefH: UserData): HandlerError;
  535.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  536.     INLINE $2F3C, $0008, $0107, $7000, $A82A;
  537.     {$ENDC}
  538. FUNCTION TCSetTimeCodeFlags(mh: MediaHandler; flags: LONGINT; flagsMask: LONGINT): HandlerError;
  539.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  540.     INLINE $2F3C, $0008, $0108, $7000, $A82A;
  541.     {$ENDC}
  542. FUNCTION TCGetTimeCodeFlags(mh: MediaHandler; VAR flags: LONGINT): HandlerError;
  543.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  544.     INLINE $2F3C, $0004, $0109, $7000, $A82A;
  545.     {$ENDC}
  546. FUNCTION TCSetDisplayOptions(mh: MediaHandler; textOptions: TCTextOptionsPtr): HandlerError;
  547.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  548.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  549.     {$ENDC}
  550. FUNCTION TCGetDisplayOptions(mh: MediaHandler; textOptions: TCTextOptionsPtr): HandlerError;
  551.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  552.     INLINE $2F3C, $0004, $010B, $7000, $A82A;
  553.     {$ENDC}
  554.  
  555.  
  556.  
  557. TYPE
  558.     MovieImportComponent                = ComponentInstance;
  559.     MovieExportComponent                = ComponentInstance;
  560.  
  561. CONST
  562.     MovieImportType                = 'eat ';
  563.     MovieExportType                = 'spit';
  564.  
  565.     canMovieImportHandles        = $01;
  566.     canMovieImportFiles            = $02;
  567.     hasMovieImportUserInterface    = $04;
  568.     canMovieExportHandles        = $08;
  569.     canMovieExportFiles            = $10;
  570.     hasMovieExportUserInterface    = $20;
  571.     dontAutoFileMovieImport        = $40;
  572.     canMovieExportAuxDataHandle    = $80;
  573.     canMovieImportValidateHandles = $0100;
  574.     canMovieImportValidateFile    = $0200;
  575.     dontRegisterWithEasyOpen    = $0400;
  576.     canMovieImportInPlace        = $0800;
  577.     movieImportSubTypeIsFileExtension = $1000;
  578.     canMovieImportPartial        = $2000;
  579.     hasMovieImportMIMEList        = $4000;
  580.     canMovieExportFromProcedures = $8000;
  581.     canMovieExportValidateMovie    = $00010000;
  582.     movieExportNeedsResourceFork = $00020000;
  583.     canMovieImportDataReferences = $00040000;
  584.     movieExportMustGetSourceMediaType = $00080000;
  585.     reservedForUseByGraphicsImporters = $00800000;
  586.  
  587.     movieImportCreateTrack        = 1;
  588.     movieImportInParallel        = 2;
  589.     movieImportMustUseTrack        = 4;
  590.  
  591.     movieImportResultUsedMultipleTracks = 8;
  592.  
  593.     kMovieExportTextOnly        = 0;
  594.     kMovieExportAbsoluteTime    = 1;
  595.     kMovieExportRelativeTime    = 2;
  596.  
  597.     kMIDIImportSilenceBefore    = $01;
  598.     kMIDIImportSilenceAfter        = $02;
  599.     kMIDIImport20Playable        = $04;
  600.     kMIDIImportWantLyrics        = $08;
  601.  
  602.     kMimeInfoMimeTypeTag        = 'mime';
  603.     kMimeInfoFileExtensionTag    = 'ext ';
  604.     kMimeInfoDescriptionTag        = 'desc';
  605.  
  606.     kQTFileTypeAIFF                = 'AIFF';
  607.     kQTFileTypeAIFC                = 'AIFC';
  608.     kQTFileTypeDVC                = 'dvc!';
  609.     kQTFileTypeMIDI                = 'Midi';
  610.     kQTFileTypePicture            = 'PICT';
  611.     kQTFileTypeMovie            = 'MooV';
  612.     kQTFileTypeText                = 'TEXT';
  613.     kQTFileTypeWave                = 'WAVE';
  614.     kQTFileTypeSystemSevenSound    = 'sfil';
  615.     kQTFileTypeMuLaw            = 'ULAW';
  616.     kQTFileTypeAVI                = 'VfW ';
  617.     kQTFileTypeSoundDesignerII    = 'Sd2f';
  618.     kQTFileTypeAudioCDTrack        = 'trak';
  619.     kQTFileTypePICS                = 'PICS';
  620.     kQTFileTypeGIF                = 'GIFf';
  621.     kQTFileTypePhotoShop        = '8BPS';
  622.     kQTFileTypeSGIImage            = '.SGI';
  623.     kQTFileTypeBMP                = 'BMPf';
  624.     kQTFileTypeJPEG                = 'JPEG';
  625.     kQTFileTypeJFIF                = 'JPEG';
  626.     kQTFileTypeMacPaint            = 'PNTG';
  627.     kQTFileTypeTargaImage        = 'TPIC';
  628.     kQTFileTypeQuickDrawGXPicture = 'qdgx';
  629.     kQTFileTypeQuickTimeImage    = 'qtif';
  630.     kQTFileType3DMF                = '3DMF';
  631.  
  632. {  QTAtomTypes for atoms in import/export settings containers }
  633.     kQTSettingsEffect            = 'effe';                        {  Parent atom whose contents are atoms of an effects description }
  634.     kQTSettingsMIDI                = 'MIDI';                        {  MIDI import related container }
  635.     kQTSettingsMIDISettingFlags    = 'sttg';                        {  MIDI import settings    (UInt32) }
  636.     kQTSettingsText                = 'text';                        {  Text related container }
  637.     kQTSettingsTextDescription    = 'desc';                        {  Text settings (TextDescription record) }
  638.     kQTSettingsTextSize            = 'size';                        {  Width/height to create (FixedPoint) }
  639.     kQTSettingsTextSettingFlags    = 'sttg';                        {  Text export settings (UInt32) }
  640.     kQTSettingsTextTimeFraction    = 'timf';                        {  Movie time fraction for export (UInt32) }
  641.     kQTSettingsTime                = 'time';                        {  Time related container }
  642.     kQTSettingsAudioCDTrack        = 'trak';                        {  Audio CD track related container }
  643.     kQTSettingsAudioCDTrackRateShift = 'rshf';                    {  Rate shift to be performed (SInt16) }
  644.  
  645.  
  646.  
  647.  
  648.  
  649. TYPE
  650.     MovieExportGetDataParamsPtr = ^MovieExportGetDataParams;
  651.     MovieExportGetDataParams = RECORD
  652.         recordSize:                LONGINT;
  653.         trackID:                LONGINT;
  654.         sourceTimeScale:        TimeScale;
  655.         requestedTime:            TimeValue;
  656.         actualTime:                TimeValue;
  657.         dataPtr:                Ptr;
  658.         dataSize:                LONGINT;
  659.         desc:                    SampleDescriptionHandle;
  660.         descType:                OSType;
  661.         descSeed:                LONGINT;
  662.         requestedSampleCount:    LONGINT;
  663.         actualSampleCount:        LONGINT;
  664.         durationPerSample:        TimeValue;
  665.         sampleFlags:            LONGINT;
  666.     END;
  667.  
  668. {$IFC TYPED_FUNCTION_POINTERS}
  669.     MovieExportGetDataProcPtr = FUNCTION(refCon: UNIV Ptr; VAR params: MovieExportGetDataParams): OSErr;
  670. {$ELSEC}
  671.     MovieExportGetDataProcPtr = ProcPtr;
  672. {$ENDC}
  673.  
  674. {$IFC TYPED_FUNCTION_POINTERS}
  675.     MovieExportGetPropertyProcPtr = FUNCTION(refcon: UNIV Ptr; trackID: LONGINT; propertyType: OSType; propertyValue: UNIV Ptr): OSErr;
  676. {$ELSEC}
  677.     MovieExportGetPropertyProcPtr = ProcPtr;
  678. {$ENDC}
  679.  
  680.     MovieExportGetDataUPP = UniversalProcPtr;
  681.     MovieExportGetPropertyUPP = UniversalProcPtr;
  682.  
  683. CONST
  684.     uppSCModalFilterProcInfo = $00003FD0;
  685.     uppSCModalHookProcInfo = $00003EE0;
  686.     uppTweenerDataProcInfo = $003FFFF0;
  687.     uppMovieExportGetDataProcInfo = $000003E0;
  688.     uppMovieExportGetPropertyProcInfo = $00003FE0;
  689.  
  690. FUNCTION NewSCModalFilterProc(userRoutine: SCModalFilterProcPtr): SCModalFilterUPP;
  691.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  692.     INLINE $2E9F;
  693.     {$ENDC}
  694.  
  695. FUNCTION NewSCModalHookProc(userRoutine: SCModalHookProcPtr): SCModalHookUPP;
  696.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  697.     INLINE $2E9F;
  698.     {$ENDC}
  699.  
  700. FUNCTION NewTweenerDataProc(userRoutine: TweenerDataProcPtr): TweenerDataUPP;
  701.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  702.     INLINE $2E9F;
  703.     {$ENDC}
  704.  
  705. FUNCTION NewMovieExportGetDataProc(userRoutine: MovieExportGetDataProcPtr): MovieExportGetDataUPP;
  706.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  707.     INLINE $2E9F;
  708.     {$ENDC}
  709.  
  710. FUNCTION NewMovieExportGetPropertyProc(userRoutine: MovieExportGetPropertyProcPtr): MovieExportGetPropertyUPP;
  711.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  712.     INLINE $2E9F;
  713.     {$ENDC}
  714.  
  715. FUNCTION CallSCModalFilterProc(theDialog: DialogPtr; VAR theEvent: EventRecord; VAR itemHit: INTEGER; refcon: LONGINT; userRoutine: SCModalFilterUPP): BOOLEAN;
  716.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  717.     INLINE $205F, $4E90;
  718.     {$ENDC}
  719.  
  720. FUNCTION CallSCModalHookProc(theDialog: DialogPtr; itemHit: INTEGER; params: UNIV Ptr; refcon: LONGINT; userRoutine: SCModalHookUPP): INTEGER;
  721.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  722.     INLINE $205F, $4E90;
  723.     {$ENDC}
  724.  
  725. FUNCTION CallTweenerDataProc(VAR tr: TweenRecord; tweenData: UNIV Ptr; tweenDataSize: LONGINT; dataDescriptionSeed: LONGINT; dataDescription: Handle; asyncCompletionProc: ICMCompletionProcRecordPtr; transferProc: UniversalProcPtr; refCon: UNIV Ptr; userRoutine: TweenerDataUPP): ComponentResult;
  726.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  727.     INLINE $205F, $4E90;
  728.     {$ENDC}
  729.  
  730. FUNCTION CallMovieExportGetDataProc(refCon: UNIV Ptr; VAR params: MovieExportGetDataParams; userRoutine: MovieExportGetDataUPP): OSErr;
  731.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  732.     INLINE $205F, $4E90;
  733.     {$ENDC}
  734.  
  735. FUNCTION CallMovieExportGetPropertyProc(refcon: UNIV Ptr; trackID: LONGINT; propertyType: OSType; propertyValue: UNIV Ptr; userRoutine: MovieExportGetPropertyUPP): OSErr;
  736.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  737.     INLINE $205F, $4E90;
  738.     {$ENDC}
  739. FUNCTION MovieImportHandle(ci: MovieImportComponent; dataH: Handle; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  740.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  741.     INLINE $2F3C, $0020, $0001, $7000, $A82A;
  742.     {$ENDC}
  743. FUNCTION MovieImportFile(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  744.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  745.     INLINE $2F3C, $0020, $0002, $7000, $A82A;
  746.     {$ENDC}
  747. FUNCTION MovieImportSetSampleDuration(ci: MovieImportComponent; duration: TimeValue; scale: TimeScale): ComponentResult;
  748.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  749.     INLINE $2F3C, $0008, $0003, $7000, $A82A;
  750.     {$ENDC}
  751. FUNCTION MovieImportSetSampleDescription(ci: MovieImportComponent; desc: SampleDescriptionHandle; mediaType: OSType): ComponentResult;
  752.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  753.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  754.     {$ENDC}
  755. FUNCTION MovieImportSetMediaFile(ci: MovieImportComponent; alias: AliasHandle): ComponentResult;
  756.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  757.     INLINE $2F3C, $0004, $0005, $7000, $A82A;
  758.     {$ENDC}
  759. FUNCTION MovieImportSetDimensions(ci: MovieImportComponent; width: Fixed; height: Fixed): ComponentResult;
  760.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  761.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  762.     {$ENDC}
  763. FUNCTION MovieImportSetChunkSize(ci: MovieImportComponent; chunkSize: LONGINT): ComponentResult;
  764.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  765.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  766.     {$ENDC}
  767. FUNCTION MovieImportSetProgressProc(ci: MovieImportComponent; proc: MovieProgressUPP; refcon: LONGINT): ComponentResult;
  768.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  769.     INLINE $2F3C, $0008, $0008, $7000, $A82A;
  770.     {$ENDC}
  771. FUNCTION MovieImportSetAuxiliaryData(ci: MovieImportComponent; data: Handle; handleType: OSType): ComponentResult;
  772.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  773.     INLINE $2F3C, $0008, $0009, $7000, $A82A;
  774.     {$ENDC}
  775. FUNCTION MovieImportSetFromScrap(ci: MovieImportComponent; fromScrap: BOOLEAN): ComponentResult;
  776.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  777.     INLINE $2F3C, $0002, $000A, $7000, $A82A;
  778.     {$ENDC}
  779. FUNCTION MovieImportDoUserDialog(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theData: Handle; VAR canceled: BOOLEAN): ComponentResult;
  780.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  781.     INLINE $2F3C, $000C, $000B, $7000, $A82A;
  782.     {$ENDC}
  783. FUNCTION MovieImportSetDuration(ci: MovieImportComponent; duration: TimeValue): ComponentResult;
  784.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  785.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  786.     {$ENDC}
  787. FUNCTION MovieImportGetAuxiliaryDataType(ci: MovieImportComponent; VAR auxType: OSType): ComponentResult;
  788.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  789.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  790.     {$ENDC}
  791. FUNCTION MovieImportValidate(ci: MovieImportComponent; {CONST}VAR theFile: FSSpec; theData: Handle; VAR valid: BOOLEAN): ComponentResult;
  792.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  793.     INLINE $2F3C, $000C, $000E, $7000, $A82A;
  794.     {$ENDC}
  795. FUNCTION MovieImportGetFileType(ci: MovieImportComponent; VAR fileType: OSType): ComponentResult;
  796.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  797.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  798.     {$ENDC}
  799. FUNCTION MovieImportDataRef(ci: MovieImportComponent; dataRef: Handle; dataRefType: OSType; theMovie: Movie; targetTrack: Track; VAR usedTrack: Track; atTime: TimeValue; VAR addedDuration: TimeValue; inFlags: LONGINT; VAR outFlags: LONGINT): ComponentResult;
  800.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  801.     INLINE $2F3C, $0024, $0010, $7000, $A82A;
  802.     {$ENDC}
  803. FUNCTION MovieImportGetSampleDescription(ci: MovieImportComponent; VAR desc: SampleDescriptionHandle; VAR mediaType: OSType): ComponentResult;
  804.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  805.     INLINE $2F3C, $0008, $0011, $7000, $A82A;
  806.     {$ENDC}
  807. FUNCTION MovieImportGetMIMETypeList(ci: MovieImportComponent; VAR mimeInfo: QTAtomContainer): ComponentResult;
  808.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  809.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  810.     {$ENDC}
  811. FUNCTION MovieImportSetOffsetAndLimit(ci: MovieImportComponent; offset: UInt32; limit: UInt32): ComponentResult;
  812.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  813.     INLINE $2F3C, $0008, $0013, $7000, $A82A;
  814.     {$ENDC}
  815. FUNCTION MovieImportGetSettingsAsAtomContainer(ci: MovieImportComponent; VAR settings: QTAtomContainer): ComponentResult;
  816.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  817.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  818.     {$ENDC}
  819. FUNCTION MovieImportSetSettingsFromAtomContainer(ci: MovieImportComponent; settings: QTAtomContainer): ComponentResult;
  820.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  821.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  822.     {$ENDC}
  823. FUNCTION MovieExportToHandle(ci: MovieExportComponent; dataH: Handle; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  824.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  825.     INLINE $2F3C, $0014, $0080, $7000, $A82A;
  826.     {$ENDC}
  827. FUNCTION MovieExportToFile(ci: MovieExportComponent; {CONST}VAR theFile: FSSpec; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  828.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  829.     INLINE $2F3C, $0014, $0081, $7000, $A82A;
  830.     {$ENDC}
  831. FUNCTION MovieExportGetAuxiliaryData(ci: MovieExportComponent; dataH: Handle; VAR handleType: OSType): ComponentResult;
  832.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  833.     INLINE $2F3C, $0008, $0083, $7000, $A82A;
  834.     {$ENDC}
  835. FUNCTION MovieExportSetProgressProc(ci: MovieExportComponent; proc: MovieProgressUPP; refcon: LONGINT): ComponentResult;
  836.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  837.     INLINE $2F3C, $0008, $0084, $7000, $A82A;
  838.     {$ENDC}
  839. FUNCTION MovieExportSetSampleDescription(ci: MovieExportComponent; desc: SampleDescriptionHandle; mediaType: OSType): ComponentResult;
  840.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  841.     INLINE $2F3C, $0008, $0085, $7000, $A82A;
  842.     {$ENDC}
  843. FUNCTION MovieExportDoUserDialog(ci: MovieExportComponent; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue; VAR canceled: BOOLEAN): ComponentResult;
  844.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  845.     INLINE $2F3C, $0014, $0086, $7000, $A82A;
  846.     {$ENDC}
  847. FUNCTION MovieExportGetCreatorType(ci: MovieExportComponent; VAR creator: OSType): ComponentResult;
  848.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  849.     INLINE $2F3C, $0004, $0087, $7000, $A82A;
  850.     {$ENDC}
  851. FUNCTION MovieExportToDataRef(ci: MovieExportComponent; dataRef: Handle; dataRefType: OSType; theMovie: Movie; onlyThisTrack: Track; startTime: TimeValue; duration: TimeValue): ComponentResult;
  852.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  853.     INLINE $2F3C, $0018, $0088, $7000, $A82A;
  854.     {$ENDC}
  855. FUNCTION MovieExportFromProceduresToDataRef(ci: MovieExportComponent; dataRef: Handle; dataRefType: OSType): ComponentResult;
  856.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  857.     INLINE $2F3C, $0008, $0089, $7000, $A82A;
  858.     {$ENDC}
  859. FUNCTION MovieExportAddDataSource(ci: MovieExportComponent; trackType: OSType; scale: TimeScale; VAR trackID: LONGINT; getPropertyProc: MovieExportGetPropertyUPP; getDataProc: MovieExportGetDataUPP; refCon: UNIV Ptr): ComponentResult;
  860.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  861.     INLINE $2F3C, $0018, $008A, $7000, $A82A;
  862.     {$ENDC}
  863. FUNCTION MovieExportValidate(ci: MovieExportComponent; theMovie: Movie; onlyThisTrack: Track; VAR valid: BOOLEAN): ComponentResult;
  864.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  865.     INLINE $2F3C, $000C, $008B, $7000, $A82A;
  866.     {$ENDC}
  867. FUNCTION MovieExportGetSettingsAsAtomContainer(ci: MovieExportComponent; VAR settings: QTAtomContainer): ComponentResult;
  868.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  869.     INLINE $2F3C, $0004, $008C, $7000, $A82A;
  870.     {$ENDC}
  871. FUNCTION MovieExportSetSettingsFromAtomContainer(ci: MovieExportComponent; settings: QTAtomContainer): ComponentResult;
  872.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  873.     INLINE $2F3C, $0004, $008D, $7000, $A82A;
  874.     {$ENDC}
  875. FUNCTION MovieExportGetFileNameExtension(ci: MovieExportComponent; VAR extension: OSType): ComponentResult;
  876.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  877.     INLINE $2F3C, $0004, $008E, $7000, $A82A;
  878.     {$ENDC}
  879. FUNCTION MovieExportGetShortFileTypeString(ci: MovieExportComponent; VAR typeString: Str255): ComponentResult;
  880.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  881.     INLINE $2F3C, $0004, $008F, $7000, $A82A;
  882.     {$ENDC}
  883. FUNCTION MovieExportGetSourceMediaType(ci: MovieExportComponent; VAR mediaType: OSType): ComponentResult;
  884.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  885.     INLINE $2F3C, $0004, $0090, $7000, $A82A;
  886.     {$ENDC}
  887. {  Text Export Display Info data structure }
  888.  
  889. TYPE
  890.     TextDisplayDataPtr = ^TextDisplayData;
  891.     TextDisplayData = RECORD
  892.         displayFlags:            LONGINT;
  893.         textJustification:        LONGINT;
  894.         bgColor:                RGBColor;
  895.         textBox:                Rect;
  896.         beginHilite:            INTEGER;
  897.         endHilite:                INTEGER;
  898.         hiliteColor:            RGBColor;
  899.         doHiliteColor:            BOOLEAN;
  900.         filler:                    SInt8;
  901.         scrollDelayDur:            TimeValue;
  902.         dropShadowOffset:        Point;
  903.         dropShadowTransparency:    INTEGER;
  904.     END;
  905.  
  906.     TextExportComponent                    = ComponentInstance;
  907.     GraphicImageMovieImportComponent    = ComponentInstance;
  908. FUNCTION TextExportGetDisplayData(ci: TextExportComponent; VAR textDisplay: TextDisplayData): ComponentResult;
  909.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  910.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  911.     {$ENDC}
  912. FUNCTION TextExportGetTimeFraction(ci: TextExportComponent; VAR movieTimeFraction: LONGINT): ComponentResult;
  913.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  914.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  915.     {$ENDC}
  916. FUNCTION TextExportSetTimeFraction(ci: TextExportComponent; movieTimeFraction: LONGINT): ComponentResult;
  917.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  918.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  919.     {$ENDC}
  920. FUNCTION TextExportGetSettings(ci: TextExportComponent; VAR setting: LONGINT): ComponentResult;
  921.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  922.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  923.     {$ENDC}
  924. FUNCTION TextExportSetSettings(ci: TextExportComponent; setting: LONGINT): ComponentResult;
  925.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  926.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  927.     {$ENDC}
  928.  
  929. FUNCTION MIDIImportGetSettings(ci: TextExportComponent; VAR setting: LONGINT): ComponentResult;
  930.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  931.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  932.     {$ENDC}
  933. FUNCTION MIDIImportSetSettings(ci: TextExportComponent; setting: LONGINT): ComponentResult;
  934.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  935.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  936.     {$ENDC}
  937. FUNCTION MovieExportNewGetDataAndPropertiesProcs(ci: MovieExportComponent; trackType: OSType; VAR scale: TimeScale; theMovie: Movie; theTrack: Track; startTime: TimeValue; duration: TimeValue; VAR getPropertyProc: MovieExportGetPropertyUPP; VAR getDataProc: MovieExportGetDataUPP; VAR refCon: UNIV Ptr): ComponentResult;
  938.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  939.     INLINE $2F3C, $0024, $0100, $7000, $A82A;
  940.     {$ENDC}
  941. FUNCTION MovieExportDisposeGetDataAndPropertiesProcs(ci: MovieExportComponent; getPropertyProc: MovieExportGetPropertyUPP; getDataProc: MovieExportGetDataUPP; refCon: UNIV Ptr): ComponentResult;
  942.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  943.     INLINE $2F3C, $000C, $0101, $7000, $A82A;
  944.     {$ENDC}
  945.  
  946. CONST
  947.     movieExportWidth            = 'wdth';                        {  pointer to Fixed }
  948.     movieExportHeight            = 'hegt';                        {  pointer to Fixed }
  949.     movieExportDuration            = 'dura';                        {  pointer to TimeRecord }
  950.     movieExportVideoFilter        = 'iflt';                        {  pointer to QTAtomContainer }
  951.  
  952. FUNCTION GraphicsImageImportSetSequenceEnabled(ci: GraphicImageMovieImportComponent; enable: BOOLEAN): ComponentResult;
  953.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  954.     INLINE $2F3C, $0002, $0100, $7000, $A82A;
  955.     {$ENDC}
  956. FUNCTION GraphicsImageImportGetSequenceEnabled(ci: GraphicImageMovieImportComponent; VAR enable: BOOLEAN): ComponentResult;
  957.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  958.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  959.     {$ENDC}
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967. {**************
  968.  
  969.     File Preview Components
  970.  
  971. **************}
  972.  
  973. TYPE
  974.     pnotComponent                        = ComponentInstance;
  975.  
  976. CONST
  977.     pnotComponentWantsEvents    = 1;
  978.     pnotComponentNeedsNoCache    = 2;
  979.  
  980.     ShowFilePreviewComponentType = 'pnot';
  981.     CreateFilePreviewComponentType = 'pmak';
  982.  
  983. FUNCTION PreviewShowData(p: pnotComponent; dataType: OSType; data: Handle; {CONST}VAR inHere: Rect): ComponentResult;
  984.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  985.     INLINE $2F3C, $000C, $0001, $7000, $A82A;
  986.     {$ENDC}
  987. FUNCTION PreviewMakePreview(p: pnotComponent; VAR previewType: OSType; VAR previewResult: Handle; {CONST}VAR sourceFile: FSSpec; progress: ICMProgressProcRecordPtr): ComponentResult;
  988.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  989.     INLINE $2F3C, $0010, $0002, $7000, $A82A;
  990.     {$ENDC}
  991. FUNCTION PreviewMakePreviewReference(p: pnotComponent; VAR previewType: OSType; VAR resID: INTEGER; {CONST}VAR sourceFile: FSSpec): ComponentResult;
  992.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  993.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  994.     {$ENDC}
  995. FUNCTION PreviewEvent(p: pnotComponent; VAR e: EventRecord; VAR handledEvent: BOOLEAN): ComponentResult;
  996.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  997.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  998.     {$ENDC}
  999.  
  1000.  
  1001.  
  1002. TYPE
  1003.     DataCompressorComponent                = ComponentInstance;
  1004.     DataDecompressorComponent            = ComponentInstance;
  1005.     DataCodecComponent                    = ComponentInstance;
  1006.  
  1007. CONST
  1008.     DataCompressorComponentType    = 'dcom';
  1009.     DataDecompressorComponentType = 'ddec';
  1010.     AppleDataCompressorSubType    = 'adec';
  1011.     zlibDataCompressorSubType    = 'zlib';
  1012.  
  1013.  
  1014. {* These are DataCodec procedures *}
  1015. FUNCTION DataCodecDecompress(dc: DataCodecComponent; srcData: UNIV Ptr; srcSize: UInt32; dstData: UNIV Ptr; dstBufferSize: UInt32): ComponentResult;
  1016.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1017.     INLINE $2F3C, $0010, $0001, $7000, $A82A;
  1018.     {$ENDC}
  1019. FUNCTION DataCodecGetCompressBufferSize(dc: DataCodecComponent; srcSize: UInt32; VAR dstSize: UInt32): ComponentResult;
  1020.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1021.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  1022.     {$ENDC}
  1023. FUNCTION DataCodecCompress(dc: DataCodecComponent; srcData: UNIV Ptr; srcSize: UInt32; dstData: UNIV Ptr; dstBufferSize: UInt32; VAR actualDstSize: UInt32; VAR decompressSlop: UInt32): ComponentResult;
  1024.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1025.     INLINE $2F3C, $0018, $0003, $7000, $A82A;
  1026.     {$ENDC}
  1027. FUNCTION DataCodecBeginInterruptSafe(dc: DataCodecComponent; maxSrcSize: UInt32): ComponentResult;
  1028.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1029.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  1030.     {$ENDC}
  1031. FUNCTION DataCodecEndInterruptSafe(dc: DataCodecComponent): ComponentResult;
  1032.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1033.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  1034.     {$ENDC}
  1035. FUNCTION DataCodecDecompressPartial(dc: DataCodecComponent; VAR next_in: UNIV Ptr; VAR avail_in: UInt32; VAR total_in: UInt32; VAR next_out: UNIV Ptr; VAR avail_out: UInt32; VAR total_out: UInt32; VAR didFinish: BOOLEAN): ComponentResult;
  1036.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1037.     INLINE $2F3C, $001C, $0006, $7000, $A82A;
  1038.     {$ENDC}
  1039. FUNCTION DataCodecCompressPartial(dc: DataCodecComponent; VAR next_in: UNIV Ptr; VAR avail_in: UInt32; VAR total_in: UInt32; VAR next_out: UNIV Ptr; VAR avail_out: UInt32; VAR total_out: UInt32; tryToFinish: BOOLEAN; VAR didFinish: BOOLEAN): ComponentResult;
  1040.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1041.     INLINE $2F3C, $001E, $0007, $7000, $A82A;
  1042.     {$ENDC}
  1043.  
  1044.  
  1045.  
  1046.  
  1047. TYPE
  1048. {$IFC TYPED_FUNCTION_POINTERS}
  1049.     DataHCompletionProcPtr = PROCEDURE(request: Ptr; refcon: LONGINT; err: OSErr);
  1050. {$ELSEC}
  1051.     DataHCompletionProcPtr = ProcPtr;
  1052. {$ENDC}
  1053.  
  1054.     DataHCompletionUPP = UniversalProcPtr;
  1055.  
  1056.  
  1057. CONST
  1058.     kDataHCanRead                = $00000001;
  1059.     kDataHSpecialRead            = $00000002;
  1060.     kDataHSpecialReadFile        = $00000004;
  1061.     kDataHCanWrite                = $00000008;
  1062.     kDataHSpecialWrite            = $10;
  1063.     kDataHSpecialWriteFile        = $20;
  1064.     kDataHCanStreamingWrite        = $40;
  1065.     kDataHMustCheckDataRef        = $80;
  1066.  
  1067.  
  1068. TYPE
  1069.     DataHVolumeListRecordPtr = ^DataHVolumeListRecord;
  1070.     DataHVolumeListRecord = RECORD
  1071.         vRefNum:                INTEGER;
  1072.         flags:                    LONGINT;
  1073.     END;
  1074.  
  1075.     DataHVolumeListPtr                    = ^DataHVolumeListRecord;
  1076.     DataHVolumeList                        = ^DataHVolumeListPtr;
  1077.  
  1078. CONST
  1079.     kDataHExtendedSchedule        = 'xtnd';
  1080.  
  1081.  
  1082. TYPE
  1083.     DataHScheduleRecordPtr = ^DataHScheduleRecord;
  1084.     DataHScheduleRecord = RECORD
  1085.         timeNeededBy:            TimeRecord;
  1086.         extendedID:                LONGINT;                                {  always is kDataHExtendedSchedule }
  1087.         extendedVers:            LONGINT;                                {  always set to 0 }
  1088.         priority:                Fixed;                                    {  100.0 or more means must have. lower numbers… }
  1089.     END;
  1090.  
  1091.     DataHSchedulePtr                    = ^DataHScheduleRecord;
  1092.  
  1093.  
  1094. FUNCTION DataHGetData(dh: DataHandler; h: Handle; hOffset: LONGINT; offset: LONGINT; size: LONGINT): ComponentResult;
  1095.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1096.     INLINE $2F3C, $0010, $0002, $7000, $A82A;
  1097.     {$ENDC}
  1098. FUNCTION DataHPutData(dh: DataHandler; h: Handle; hOffset: LONGINT; VAR offset: LONGINT; size: LONGINT): ComponentResult;
  1099.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1100.     INLINE $2F3C, $0010, $0003, $7000, $A82A;
  1101.     {$ENDC}
  1102. FUNCTION DataHFlushData(dh: DataHandler): ComponentResult;
  1103.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1104.     INLINE $2F3C, $0000, $0004, $7000, $A82A;
  1105.     {$ENDC}
  1106. FUNCTION DataHOpenForWrite(dh: DataHandler): ComponentResult;
  1107.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1108.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  1109.     {$ENDC}
  1110. FUNCTION DataHCloseForWrite(dh: DataHandler): ComponentResult;
  1111.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1112.     INLINE $2F3C, $0000, $0006, $7000, $A82A;
  1113.     {$ENDC}
  1114.  
  1115. FUNCTION DataHOpenForRead(dh: DataHandler): ComponentResult;
  1116.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1117.     INLINE $2F3C, $0000, $0008, $7000, $A82A;
  1118.     {$ENDC}
  1119. FUNCTION DataHCloseForRead(dh: DataHandler): ComponentResult;
  1120.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1121.     INLINE $2F3C, $0000, $0009, $7000, $A82A;
  1122.     {$ENDC}
  1123. FUNCTION DataHSetDataRef(dh: DataHandler; dataRef: Handle): ComponentResult;
  1124.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1125.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  1126.     {$ENDC}
  1127. FUNCTION DataHGetDataRef(dh: DataHandler; VAR dataRef: Handle): ComponentResult;
  1128.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1129.     INLINE $2F3C, $0004, $000B, $7000, $A82A;
  1130.     {$ENDC}
  1131. FUNCTION DataHCompareDataRef(dh: DataHandler; dataRef: Handle; VAR equal: BOOLEAN): ComponentResult;
  1132.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1133.     INLINE $2F3C, $0008, $000C, $7000, $A82A;
  1134.     {$ENDC}
  1135. FUNCTION DataHTask(dh: DataHandler): ComponentResult;
  1136.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1137.     INLINE $2F3C, $0000, $000D, $7000, $A82A;
  1138.     {$ENDC}
  1139. FUNCTION DataHScheduleData(dh: DataHandler; PlaceToPutDataPtr: Ptr; FileOffset: LONGINT; DataSize: LONGINT; RefCon: LONGINT; scheduleRec: DataHSchedulePtr; CompletionRtn: DataHCompletionUPP): ComponentResult;
  1140.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1141.     INLINE $2F3C, $0018, $000E, $7000, $A82A;
  1142.     {$ENDC}
  1143. FUNCTION DataHFinishData(dh: DataHandler; PlaceToPutDataPtr: Ptr; Cancel: BOOLEAN): ComponentResult;
  1144.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1145.     INLINE $2F3C, $0006, $000F, $7000, $A82A;
  1146.     {$ENDC}
  1147. FUNCTION DataHFlushCache(dh: DataHandler): ComponentResult;
  1148.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1149.     INLINE $2F3C, $0000, $0010, $7000, $A82A;
  1150.     {$ENDC}
  1151. FUNCTION DataHResolveDataRef(dh: DataHandler; theDataRef: Handle; VAR wasChanged: BOOLEAN; userInterfaceAllowed: BOOLEAN): ComponentResult;
  1152.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1153.     INLINE $2F3C, $000A, $0011, $7000, $A82A;
  1154.     {$ENDC}
  1155. FUNCTION DataHGetFileSize(dh: DataHandler; VAR fileSize: LONGINT): ComponentResult;
  1156.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1157.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  1158.     {$ENDC}
  1159. FUNCTION DataHCanUseDataRef(dh: DataHandler; dataRef: Handle; VAR useFlags: LONGINT): ComponentResult;
  1160.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1161.     INLINE $2F3C, $0008, $0013, $7000, $A82A;
  1162.     {$ENDC}
  1163. FUNCTION DataHGetVolumeList(dh: DataHandler; VAR volumeList: DataHVolumeList): ComponentResult;
  1164.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1165.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  1166.     {$ENDC}
  1167. FUNCTION DataHWrite(dh: DataHandler; data: Ptr; offset: LONGINT; size: LONGINT; completion: DataHCompletionUPP; refCon: LONGINT): ComponentResult;
  1168.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1169.     INLINE $2F3C, $0014, $0015, $7000, $A82A;
  1170.     {$ENDC}
  1171. FUNCTION DataHPreextend(dh: DataHandler; maxToAdd: UInt32; VAR spaceAdded: UInt32): ComponentResult;
  1172.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1173.     INLINE $2F3C, $0008, $0016, $7000, $A82A;
  1174.     {$ENDC}
  1175. FUNCTION DataHSetFileSize(dh: DataHandler; fileSize: LONGINT): ComponentResult;
  1176.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1177.     INLINE $2F3C, $0004, $0017, $7000, $A82A;
  1178.     {$ENDC}
  1179. FUNCTION DataHGetFreeSpace(dh: DataHandler; VAR freeSize: UInt32): ComponentResult;
  1180.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1181.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  1182.     {$ENDC}
  1183. FUNCTION DataHCreateFile(dh: DataHandler; creator: OSType; deleteExisting: BOOLEAN): ComponentResult;
  1184.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1185.     INLINE $2F3C, $0006, $0019, $7000, $A82A;
  1186.     {$ENDC}
  1187. FUNCTION DataHGetPreferredBlockSize(dh: DataHandler; VAR blockSize: LONGINT): ComponentResult;
  1188.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1189.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  1190.     {$ENDC}
  1191. FUNCTION DataHGetDeviceIndex(dh: DataHandler; VAR deviceIndex: LONGINT): ComponentResult;
  1192.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1193.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  1194.     {$ENDC}
  1195. FUNCTION DataHIsStreamingDataHandler(dh: DataHandler; VAR yes: BOOLEAN): ComponentResult;
  1196.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1197.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  1198.     {$ENDC}
  1199. FUNCTION DataHGetDataInBuffer(dh: DataHandler; startOffset: LONGINT; VAR size: LONGINT): ComponentResult;
  1200.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1201.     INLINE $2F3C, $0008, $001D, $7000, $A82A;
  1202.     {$ENDC}
  1203. FUNCTION DataHGetScheduleAheadTime(dh: DataHandler; VAR millisecs: LONGINT): ComponentResult;
  1204.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1205.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  1206.     {$ENDC}
  1207. FUNCTION DataHSetCacheSizeLimit(dh: DataHandler; cacheSizeLimit: Size): ComponentResult;
  1208.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1209.     INLINE $2F3C, $0004, $001F, $7000, $A82A;
  1210.     {$ENDC}
  1211. FUNCTION DataHGetCacheSizeLimit(dh: DataHandler; VAR cacheSizeLimit: Size): ComponentResult;
  1212.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1213.     INLINE $2F3C, $0004, $0020, $7000, $A82A;
  1214.     {$ENDC}
  1215. FUNCTION DataHGetMovie(dh: DataHandler; VAR theMovie: Movie; VAR id: INTEGER): ComponentResult;
  1216.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1217.     INLINE $2F3C, $0008, $0021, $7000, $A82A;
  1218.     {$ENDC}
  1219. FUNCTION DataHAddMovie(dh: DataHandler; theMovie: Movie; VAR id: INTEGER): ComponentResult;
  1220.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1221.     INLINE $2F3C, $0008, $0022, $7000, $A82A;
  1222.     {$ENDC}
  1223. FUNCTION DataHUpdateMovie(dh: DataHandler; theMovie: Movie; id: INTEGER): ComponentResult;
  1224.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1225.     INLINE $2F3C, $0006, $0023, $7000, $A82A;
  1226.     {$ENDC}
  1227. FUNCTION DataHDoesBuffer(dh: DataHandler; VAR buffersReads: BOOLEAN; VAR buffersWrites: BOOLEAN): ComponentResult;
  1228.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1229.     INLINE $2F3C, $0008, $0024, $7000, $A82A;
  1230.     {$ENDC}
  1231. FUNCTION DataHGetFileName(dh: DataHandler; VAR str: Str255): ComponentResult;
  1232.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1233.     INLINE $2F3C, $0004, $0025, $7000, $A82A;
  1234.     {$ENDC}
  1235. FUNCTION DataHGetAvailableFileSize(dh: DataHandler; VAR fileSize: LONGINT): ComponentResult;
  1236.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1237.     INLINE $2F3C, $0004, $0026, $7000, $A82A;
  1238.     {$ENDC}
  1239. FUNCTION DataHGetMacOSFileType(dh: DataHandler; VAR fileType: OSType): ComponentResult;
  1240.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1241.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  1242.     {$ENDC}
  1243. FUNCTION DataHGetMIMEType(dh: DataHandler; VAR mimeType: Str255): ComponentResult;
  1244.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1245.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  1246.     {$ENDC}
  1247. FUNCTION DataHSetDataRefWithAnchor(dh: DataHandler; anchorDataRef: Handle; dataRefType: OSType; dataRef: Handle): ComponentResult;
  1248.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1249.     INLINE $2F3C, $000C, $0029, $7000, $A82A;
  1250.     {$ENDC}
  1251. FUNCTION DataHGetDataRefWithAnchor(dh: DataHandler; anchorDataRef: Handle; dataRefType: OSType; VAR dataRef: Handle): ComponentResult;
  1252.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1253.     INLINE $2F3C, $000C, $002A, $7000, $A82A;
  1254.     {$ENDC}
  1255. FUNCTION DataHSetMacOSFileType(dh: DataHandler; fileType: OSType): ComponentResult;
  1256.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1257.     INLINE $2F3C, $0004, $002B, $7000, $A82A;
  1258.     {$ENDC}
  1259.  
  1260. FUNCTION DataHPlaybackHints(dh: DataHandler; flags: LONGINT; minFileOffset: UInt32; maxFileOffset: UInt32; bytesPerSecond: LONGINT): ComponentResult;
  1261.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1262.     INLINE $2F3C, $0010, $0103, $7000, $A82A;
  1263.     {$ENDC}
  1264.  
  1265.  
  1266.  
  1267. { Standard type for video digitizers }
  1268.  
  1269. CONST
  1270.     videoDigitizerComponentType    = 'vdig';
  1271.     vdigInterfaceRev            = 2;
  1272.  
  1273. { Input Format Standards }
  1274.     ntscIn                        = 0;                            {  current input format  }
  1275.     currentIn                    = 0;                            {  ntsc input format  }
  1276.     palIn                        = 1;                            {  pal input format  }
  1277.     secamIn                        = 2;                            {  secam input format  }
  1278.     ntscReallyIn                = 3;                            {  ntsc input format  }
  1279.  
  1280. { Input Formats }
  1281.     compositeIn                    = 0;                            {  input is composite format  }
  1282.     sVideoIn                    = 1;                            {  input is sVideo format  }
  1283.     rgbComponentIn                = 2;                            {  input is rgb component format  }
  1284.     rgbComponentSyncIn            = 3;                            {  input is rgb component format (sync on green?) }
  1285.     yuvComponentIn                = 4;                            {  input is yuv component format  }
  1286.     yuvComponentSyncIn            = 5;                            {  input is yuv component format (sync on green?)  }
  1287.     tvTunerIn                    = 6;
  1288.     sdiIn                        = 7;
  1289.  
  1290.  
  1291. { Video Digitizer PlayThru States }
  1292.     vdPlayThruOff                = 0;
  1293.     vdPlayThruOn                = 1;
  1294.  
  1295. { Input Color Space Modes }
  1296.     vdDigitizerBW                = 0;                            {  black and white  }
  1297.     vdDigitizerRGB                = 1;                            {  rgb color  }
  1298.  
  1299. { Phase Lock Loop Modes }
  1300.     vdBroadcastMode                = 0;                            {  Broadcast / Laser Disk video mode  }
  1301.     vdVTRMode                    = 1;                            {  VCR / Magnetic media mode  }
  1302.  
  1303. { Field Select Options }
  1304.     vdUseAnyField                = 0;                            {  Digitizers choice on field use  }
  1305.     vdUseOddField                = 1;                            {  Use odd field for half size vert and smaller  }
  1306.     vdUseEvenField                = 2;                            {  Use even field for half size vert and smaller  }
  1307.  
  1308. { vdig types }
  1309.     vdTypeBasic                    = 0;                            {  basic, no clipping  }
  1310.     vdTypeAlpha                    = 1;                            {  supports clipping with alpha channel  }
  1311.     vdTypeMask                    = 2;                            {  supports clipping with mask plane  }
  1312.     vdTypeKey                    = 3;                            {  supports clipping with key color(s)  }
  1313.  
  1314.  
  1315.  
  1316. { Digitizer Input Capability/Current Flags    }
  1317.     digiInDoesNTSC                = $00000001;                    {  digitizer supports NTSC input format  }
  1318.     digiInDoesPAL                = $00000002;                    {  digitizer supports PAL input format  }
  1319.     digiInDoesSECAM                = $00000004;                    {  digitizer supports SECAM input format  }
  1320.     digiInDoesGenLock            = $00000080;                    {  digitizer does genlock  }
  1321.     digiInDoesComposite            = $00000100;                    {  digitizer supports composite input type  }
  1322.     digiInDoesSVideo            = $00000200;                    {  digitizer supports S-Video input type  }
  1323.     digiInDoesComponent            = $00000400;                    {  digitizer supports component = rgb, input type  }
  1324.     digiInVTR_Broadcast            = $00000800;                    {  digitizer can differentiate between the two  }
  1325.     digiInDoesColor                = $00001000;                    {  digitizer supports color  }
  1326.     digiInDoesBW                = $00002000;                    {  digitizer supports black & white  }
  1327.                                                                 {  Digitizer Input Current Flags = these are valid only during active operating conditions,     }
  1328.     digiInSignalLock            = $80000000;                    {  digitizer detects input signal is locked, this bit = horiz lock || vertical lock  }
  1329.  
  1330.  
  1331. { Digitizer Output Capability/Current Flags }
  1332.     digiOutDoes1                = $00000001;                    {  digitizer supports 1 bit pixels  }
  1333.     digiOutDoes2                = $00000002;                    {  digitizer supports 2 bit pixels  }
  1334.     digiOutDoes4                = $00000004;                    {  digitizer supports 4 bit pixels  }
  1335.     digiOutDoes8                = $00000008;                    {  digitizer supports 8 bit pixels  }
  1336.     digiOutDoes16                = $00000010;                    {  digitizer supports 16 bit pixels  }
  1337.     digiOutDoes32                = $00000020;                    {  digitizer supports 32 bit pixels  }
  1338.     digiOutDoesDither            = $00000040;                    {  digitizer dithers in indexed modes  }
  1339.     digiOutDoesStretch            = $00000080;                    {  digitizer can arbitrarily stretch  }
  1340.     digiOutDoesShrink            = $00000100;                    {  digitizer can arbitrarily shrink  }
  1341.     digiOutDoesMask                = $00000200;                    {  digitizer can mask to clipping regions  }
  1342.     digiOutDoesDouble            = $00000800;                    {  digitizer can stretch to exactly double size  }
  1343.     digiOutDoesQuad                = $00001000;                    {  digitizer can stretch exactly quadruple size  }
  1344.     digiOutDoesQuarter            = $00002000;                    {  digitizer can shrink to exactly quarter size  }
  1345.     digiOutDoesSixteenth        = $00004000;                    {  digitizer can shrink to exactly sixteenth size  }
  1346.     digiOutDoesRotate            = $00008000;                    {  digitizer supports rotate transformations  }
  1347.     digiOutDoesHorizFlip        = $00010000;                    {  digitizer supports horizontal flips Sx < 0  }
  1348.     digiOutDoesVertFlip            = $00020000;                    {  digitizer supports vertical flips Sy < 0  }
  1349.     digiOutDoesSkew                = $00040000;                    {  digitizer supports skew = shear,twist,  }
  1350.     digiOutDoesBlend            = $00080000;
  1351.     digiOutDoesWarp                = $00100000;
  1352.     digiOutDoesHW_DMA            = $00200000;                    {  digitizer not constrained to local device  }
  1353.     digiOutDoesHWPlayThru        = $00400000;                    {  digitizer doesn't need time to play thru  }
  1354.     digiOutDoesILUT                = $00800000;                    {  digitizer does inverse LUT for index modes  }
  1355.     digiOutDoesKeyColor            = $01000000;                    {  digitizer does key color functions too  }
  1356.     digiOutDoesAsyncGrabs        = $02000000;                    {  digitizer supports async grabs  }
  1357.     digiOutDoesUnreadableScreenBits = $04000000;                {  playthru doesn't generate readable bits on screen }
  1358.     digiOutDoesCompress            = $08000000;                    {  supports alternate output data types  }
  1359.     digiOutDoesCompressOnly        = $10000000;                    {  can't provide raw frames anywhere  }
  1360.     digiOutDoesPlayThruDuringCompress = $20000000;                {  digi can do playthru while providing compressed data  }
  1361.     digiOutDoesCompressPartiallyVisible = $40000000;            {  digi doesn't need all bits visible on screen to do hardware compress  }
  1362.  
  1363. { Types }
  1364.  
  1365. TYPE
  1366.     VideoDigitizerComponent                = ComponentInstance;
  1367.     VideoDigitizerError                    = ComponentResult;
  1368.     DigitizerInfoPtr = ^DigitizerInfo;
  1369.     DigitizerInfo = RECORD
  1370.         vdigType:                INTEGER;
  1371.         inputCapabilityFlags:    LONGINT;
  1372.         outputCapabilityFlags:    LONGINT;
  1373.         inputCurrentFlags:        LONGINT;
  1374.         outputCurrentFlags:        LONGINT;
  1375.         slot:                    INTEGER;                                {  temporary for connection purposes  }
  1376.         gdh:                    GDHandle;                                {  temporary for digitizers that have preferred screen  }
  1377.         maskgdh:                GDHandle;                                {  temporary for digitizers that have mask planes  }
  1378.         minDestHeight:            INTEGER;                                {  Smallest resizable height  }
  1379.         minDestWidth:            INTEGER;                                {  Smallest resizable width  }
  1380.         maxDestHeight:            INTEGER;                                {  Largest resizable height  }
  1381.         maxDestWidth:            INTEGER;                                {  Largest resizable height  }
  1382.         blendLevels:            INTEGER;                                {  Number of blend levels supported (2 if 1 bit mask)  }
  1383.         reserved:                LONGINT;                                {  reserved  }
  1384.     END;
  1385.  
  1386.     VdigTypePtr = ^VdigType;
  1387.     VdigType = RECORD
  1388.         digType:                LONGINT;
  1389.         reserved:                LONGINT;
  1390.     END;
  1391.  
  1392.     VdigTypeListPtr = ^VdigTypeList;
  1393.     VdigTypeList = RECORD
  1394.         count:                    INTEGER;
  1395.         list:                    ARRAY [0..0] OF VdigType;
  1396.     END;
  1397.  
  1398.     VdigBufferRecPtr = ^VdigBufferRec;
  1399.     VdigBufferRec = RECORD
  1400.         dest:                    PixMapHandle;
  1401.         location:                Point;
  1402.         reserved:                LONGINT;
  1403.     END;
  1404.  
  1405.     VdigBufferRecListPtr = ^VdigBufferRecList;
  1406.     VdigBufferRecList = RECORD
  1407.         count:                    INTEGER;
  1408.         matrix:                    MatrixRecordPtr;
  1409.         mask:                    RgnHandle;
  1410.         list:                    ARRAY [0..0] OF VdigBufferRec;
  1411.     END;
  1412.  
  1413.     VdigBufferRecListHandle                = ^VdigBufferRecListPtr;
  1414. {$IFC TYPED_FUNCTION_POINTERS}
  1415.     VdigIntProcPtr = PROCEDURE(flags: LONGINT; refcon: LONGINT);
  1416. {$ELSEC}
  1417.     VdigIntProcPtr = ProcPtr;
  1418. {$ENDC}
  1419.  
  1420.     VdigIntUPP = UniversalProcPtr;
  1421.     VDCompressionListPtr = ^VDCompressionList;
  1422.     VDCompressionList = RECORD
  1423.         codec:                    CodecComponent;
  1424.         cType:                    CodecType;
  1425.         typeName:                Str63;
  1426.         name:                    Str63;
  1427.         formatFlags:            LONGINT;
  1428.         compressFlags:            LONGINT;
  1429.         reserved:                LONGINT;
  1430.     END;
  1431.  
  1432.     VDCompressionListHandle                = ^VDCompressionListPtr;
  1433.  
  1434. CONST
  1435.     dmaDepth1                    = 1;
  1436.     dmaDepth2                    = 2;
  1437.     dmaDepth4                    = 4;
  1438.     dmaDepth8                    = 8;
  1439.     dmaDepth16                    = 16;
  1440.     dmaDepth32                    = 32;
  1441.     dmaDepth2Gray                = 64;
  1442.     dmaDepth4Gray                = 128;
  1443.     dmaDepth8Gray                = 256;
  1444.  
  1445.     kVDIGControlledFrameRate    = -1;
  1446.  
  1447.  
  1448. FUNCTION VDGetMaxSrcRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR maxSrcRect: Rect): VideoDigitizerError;
  1449.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1450.     INLINE $2F3C, $0006, $0001, $7000, $A82A;
  1451.     {$ENDC}
  1452. FUNCTION VDGetActiveSrcRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR activeSrcRect: Rect): VideoDigitizerError;
  1453.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1454.     INLINE $2F3C, $0006, $0002, $7000, $A82A;
  1455.     {$ENDC}
  1456. FUNCTION VDSetDigitizerRect(ci: VideoDigitizerComponent; VAR digitizerRect: Rect): VideoDigitizerError;
  1457.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1458.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  1459.     {$ENDC}
  1460. FUNCTION VDGetDigitizerRect(ci: VideoDigitizerComponent; VAR digitizerRect: Rect): VideoDigitizerError;
  1461.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1462.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  1463.     {$ENDC}
  1464. FUNCTION VDGetVBlankRect(ci: VideoDigitizerComponent; inputStd: INTEGER; VAR vBlankRect: Rect): VideoDigitizerError;
  1465.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1466.     INLINE $2F3C, $0006, $0005, $7000, $A82A;
  1467.     {$ENDC}
  1468. FUNCTION VDGetMaskPixMap(ci: VideoDigitizerComponent; maskPixMap: PixMapHandle): VideoDigitizerError;
  1469.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1470.     INLINE $2F3C, $0004, $0006, $7000, $A82A;
  1471.     {$ENDC}
  1472. FUNCTION VDGetPlayThruDestination(ci: VideoDigitizerComponent; VAR dest: PixMapHandle; VAR destRect: Rect; VAR m: MatrixRecord; VAR mask: RgnHandle): VideoDigitizerError;
  1473.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1474.     INLINE $2F3C, $0010, $0008, $7000, $A82A;
  1475.     {$ENDC}
  1476. FUNCTION VDUseThisCLUT(ci: VideoDigitizerComponent; colorTableHandle: CTabHandle): VideoDigitizerError;
  1477.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1478.     INLINE $2F3C, $0004, $0009, $7000, $A82A;
  1479.     {$ENDC}
  1480. FUNCTION VDSetInputGammaValue(ci: VideoDigitizerComponent; channel1: Fixed; channel2: Fixed; channel3: Fixed): VideoDigitizerError;
  1481.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1482.     INLINE $2F3C, $000C, $000A, $7000, $A82A;
  1483.     {$ENDC}
  1484. FUNCTION VDGetInputGammaValue(ci: VideoDigitizerComponent; VAR channel1: Fixed; VAR channel2: Fixed; VAR channel3: Fixed): VideoDigitizerError;
  1485.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1486.     INLINE $2F3C, $000C, $000B, $7000, $A82A;
  1487.     {$ENDC}
  1488. FUNCTION VDSetBrightness(ci: VideoDigitizerComponent; VAR brightness: UInt16): VideoDigitizerError;
  1489.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1490.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  1491.     {$ENDC}
  1492. FUNCTION VDGetBrightness(ci: VideoDigitizerComponent; VAR brightness: UInt16): VideoDigitizerError;
  1493.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1494.     INLINE $2F3C, $0004, $000D, $7000, $A82A;
  1495.     {$ENDC}
  1496. FUNCTION VDSetContrast(ci: VideoDigitizerComponent; VAR contrast: UInt16): VideoDigitizerError;
  1497.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1498.     INLINE $2F3C, $0004, $000E, $7000, $A82A;
  1499.     {$ENDC}
  1500. FUNCTION VDSetHue(ci: VideoDigitizerComponent; VAR hue: UInt16): VideoDigitizerError;
  1501.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1502.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  1503.     {$ENDC}
  1504. FUNCTION VDSetSharpness(ci: VideoDigitizerComponent; VAR sharpness: UInt16): VideoDigitizerError;
  1505.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1506.     INLINE $2F3C, $0004, $0010, $7000, $A82A;
  1507.     {$ENDC}
  1508. FUNCTION VDSetSaturation(ci: VideoDigitizerComponent; VAR saturation: UInt16): VideoDigitizerError;
  1509.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1510.     INLINE $2F3C, $0004, $0011, $7000, $A82A;
  1511.     {$ENDC}
  1512. FUNCTION VDGetContrast(ci: VideoDigitizerComponent; VAR contrast: UInt16): VideoDigitizerError;
  1513.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1514.     INLINE $2F3C, $0004, $0012, $7000, $A82A;
  1515.     {$ENDC}
  1516. FUNCTION VDGetHue(ci: VideoDigitizerComponent; VAR hue: UInt16): VideoDigitizerError;
  1517.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1518.     INLINE $2F3C, $0004, $0013, $7000, $A82A;
  1519.     {$ENDC}
  1520. FUNCTION VDGetSharpness(ci: VideoDigitizerComponent; VAR sharpness: UInt16): VideoDigitizerError;
  1521.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1522.     INLINE $2F3C, $0004, $0014, $7000, $A82A;
  1523.     {$ENDC}
  1524. FUNCTION VDGetSaturation(ci: VideoDigitizerComponent; VAR saturation: UInt16): VideoDigitizerError;
  1525.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1526.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  1527.     {$ENDC}
  1528. FUNCTION VDGrabOneFrame(ci: VideoDigitizerComponent): VideoDigitizerError;
  1529.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1530.     INLINE $2F3C, $0000, $0016, $7000, $A82A;
  1531.     {$ENDC}
  1532. FUNCTION VDGetMaxAuxBuffer(ci: VideoDigitizerComponent; VAR pm: PixMapHandle; VAR r: Rect): VideoDigitizerError;
  1533.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1534.     INLINE $2F3C, $0008, $0017, $7000, $A82A;
  1535.     {$ENDC}
  1536. FUNCTION VDGetDigitizerInfo(ci: VideoDigitizerComponent; VAR info: DigitizerInfo): VideoDigitizerError;
  1537.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1538.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  1539.     {$ENDC}
  1540. FUNCTION VDGetCurrentFlags(ci: VideoDigitizerComponent; VAR inputCurrentFlag: LONGINT; VAR outputCurrentFlag: LONGINT): VideoDigitizerError;
  1541.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1542.     INLINE $2F3C, $0008, $001A, $7000, $A82A;
  1543.     {$ENDC}
  1544. FUNCTION VDSetKeyColor(ci: VideoDigitizerComponent; index: LONGINT): VideoDigitizerError;
  1545.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1546.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  1547.     {$ENDC}
  1548. FUNCTION VDGetKeyColor(ci: VideoDigitizerComponent; VAR index: LONGINT): VideoDigitizerError;
  1549.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1550.     INLINE $2F3C, $0004, $001C, $7000, $A82A;
  1551.     {$ENDC}
  1552. FUNCTION VDAddKeyColor(ci: VideoDigitizerComponent; VAR index: LONGINT): VideoDigitizerError;
  1553.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1554.     INLINE $2F3C, $0004, $001D, $7000, $A82A;
  1555.     {$ENDC}
  1556. FUNCTION VDGetNextKeyColor(ci: VideoDigitizerComponent; index: LONGINT): VideoDigitizerError;
  1557.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1558.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  1559.     {$ENDC}
  1560. FUNCTION VDSetKeyColorRange(ci: VideoDigitizerComponent; VAR minRGB: RGBColor; VAR maxRGB: RGBColor): VideoDigitizerError;
  1561.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1562.     INLINE $2F3C, $0008, $001F, $7000, $A82A;
  1563.     {$ENDC}
  1564. FUNCTION VDGetKeyColorRange(ci: VideoDigitizerComponent; VAR minRGB: RGBColor; VAR maxRGB: RGBColor): VideoDigitizerError;
  1565.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1566.     INLINE $2F3C, $0008, $0020, $7000, $A82A;
  1567.     {$ENDC}
  1568. FUNCTION VDSetDigitizerUserInterrupt(ci: VideoDigitizerComponent; flags: LONGINT; userInterruptProc: VdigIntUPP; refcon: LONGINT): VideoDigitizerError;
  1569.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1570.     INLINE $2F3C, $000C, $0021, $7000, $A82A;
  1571.     {$ENDC}
  1572. FUNCTION VDSetInputColorSpaceMode(ci: VideoDigitizerComponent; colorSpaceMode: INTEGER): VideoDigitizerError;
  1573.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1574.     INLINE $2F3C, $0002, $0022, $7000, $A82A;
  1575.     {$ENDC}
  1576. FUNCTION VDGetInputColorSpaceMode(ci: VideoDigitizerComponent; VAR colorSpaceMode: INTEGER): VideoDigitizerError;
  1577.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1578.     INLINE $2F3C, $0004, $0023, $7000, $A82A;
  1579.     {$ENDC}
  1580. FUNCTION VDSetClipState(ci: VideoDigitizerComponent; clipEnable: INTEGER): VideoDigitizerError;
  1581.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1582.     INLINE $2F3C, $0002, $0024, $7000, $A82A;
  1583.     {$ENDC}
  1584. FUNCTION VDGetClipState(ci: VideoDigitizerComponent; VAR clipEnable: INTEGER): VideoDigitizerError;
  1585.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1586.     INLINE $2F3C, $0004, $0025, $7000, $A82A;
  1587.     {$ENDC}
  1588. FUNCTION VDSetClipRgn(ci: VideoDigitizerComponent; clipRegion: RgnHandle): VideoDigitizerError;
  1589.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1590.     INLINE $2F3C, $0004, $0026, $7000, $A82A;
  1591.     {$ENDC}
  1592. FUNCTION VDClearClipRgn(ci: VideoDigitizerComponent; clipRegion: RgnHandle): VideoDigitizerError;
  1593.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1594.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  1595.     {$ENDC}
  1596. FUNCTION VDGetCLUTInUse(ci: VideoDigitizerComponent; VAR colorTableHandle: CTabHandle): VideoDigitizerError;
  1597.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1598.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  1599.     {$ENDC}
  1600. FUNCTION VDSetPLLFilterType(ci: VideoDigitizerComponent; pllType: INTEGER): VideoDigitizerError;
  1601.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1602.     INLINE $2F3C, $0002, $0029, $7000, $A82A;
  1603.     {$ENDC}
  1604. FUNCTION VDGetPLLFilterType(ci: VideoDigitizerComponent; VAR pllType: INTEGER): VideoDigitizerError;
  1605.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1606.     INLINE $2F3C, $0004, $002A, $7000, $A82A;
  1607.     {$ENDC}
  1608. FUNCTION VDGetMaskandValue(ci: VideoDigitizerComponent; blendLevel: UInt16; VAR mask: LONGINT; VAR value: LONGINT): VideoDigitizerError;
  1609.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1610.     INLINE $2F3C, $000A, $002B, $7000, $A82A;
  1611.     {$ENDC}
  1612. FUNCTION VDSetMasterBlendLevel(ci: VideoDigitizerComponent; VAR blendLevel: UInt16): VideoDigitizerError;
  1613.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1614.     INLINE $2F3C, $0004, $002C, $7000, $A82A;
  1615.     {$ENDC}
  1616. FUNCTION VDSetPlayThruDestination(ci: VideoDigitizerComponent; dest: PixMapHandle; destRect: RectPtr; m: MatrixRecordPtr; mask: RgnHandle): VideoDigitizerError;
  1617.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1618.     INLINE $2F3C, $0010, $002D, $7000, $A82A;
  1619.     {$ENDC}
  1620. FUNCTION VDSetPlayThruOnOff(ci: VideoDigitizerComponent; state: INTEGER): VideoDigitizerError;
  1621.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1622.     INLINE $2F3C, $0002, $002E, $7000, $A82A;
  1623.     {$ENDC}
  1624. FUNCTION VDSetFieldPreference(ci: VideoDigitizerComponent; fieldFlag: INTEGER): VideoDigitizerError;
  1625.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1626.     INLINE $2F3C, $0002, $002F, $7000, $A82A;
  1627.     {$ENDC}
  1628. FUNCTION VDGetFieldPreference(ci: VideoDigitizerComponent; VAR fieldFlag: INTEGER): VideoDigitizerError;
  1629.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1630.     INLINE $2F3C, $0004, $0030, $7000, $A82A;
  1631.     {$ENDC}
  1632. FUNCTION VDPreflightDestination(ci: VideoDigitizerComponent; VAR digitizerRect: Rect; VAR dest: PixMapPtr; destRect: RectPtr; m: MatrixRecordPtr): VideoDigitizerError;
  1633.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1634.     INLINE $2F3C, $0010, $0032, $7000, $A82A;
  1635.     {$ENDC}
  1636. FUNCTION VDPreflightGlobalRect(ci: VideoDigitizerComponent; theWindow: GrafPtr; VAR globalRect: Rect): VideoDigitizerError;
  1637.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1638.     INLINE $2F3C, $0008, $0033, $7000, $A82A;
  1639.     {$ENDC}
  1640. FUNCTION VDSetPlayThruGlobalRect(ci: VideoDigitizerComponent; theWindow: GrafPtr; VAR globalRect: Rect): VideoDigitizerError;
  1641.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1642.     INLINE $2F3C, $0008, $0034, $7000, $A82A;
  1643.     {$ENDC}
  1644. FUNCTION VDSetInputGammaRecord(ci: VideoDigitizerComponent; inputGammaPtr: VDGamRecPtr): VideoDigitizerError;
  1645.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1646.     INLINE $2F3C, $0004, $0035, $7000, $A82A;
  1647.     {$ENDC}
  1648. FUNCTION VDGetInputGammaRecord(ci: VideoDigitizerComponent; VAR inputGammaPtr: VDGamRecPtr): VideoDigitizerError;
  1649.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1650.     INLINE $2F3C, $0004, $0036, $7000, $A82A;
  1651.     {$ENDC}
  1652. FUNCTION VDSetBlackLevelValue(ci: VideoDigitizerComponent; VAR blackLevel: UInt16): VideoDigitizerError;
  1653.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1654.     INLINE $2F3C, $0004, $0037, $7000, $A82A;
  1655.     {$ENDC}
  1656. FUNCTION VDGetBlackLevelValue(ci: VideoDigitizerComponent; VAR blackLevel: UInt16): VideoDigitizerError;
  1657.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1658.     INLINE $2F3C, $0004, $0038, $7000, $A82A;
  1659.     {$ENDC}
  1660. FUNCTION VDSetWhiteLevelValue(ci: VideoDigitizerComponent; VAR whiteLevel: UInt16): VideoDigitizerError;
  1661.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1662.     INLINE $2F3C, $0004, $0039, $7000, $A82A;
  1663.     {$ENDC}
  1664. FUNCTION VDGetWhiteLevelValue(ci: VideoDigitizerComponent; VAR whiteLevel: UInt16): VideoDigitizerError;
  1665.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1666.     INLINE $2F3C, $0004, $003A, $7000, $A82A;
  1667.     {$ENDC}
  1668. FUNCTION VDGetVideoDefaults(ci: VideoDigitizerComponent; VAR blackLevel: UInt16; VAR whiteLevel: UInt16; VAR brightness: UInt16; VAR hue: UInt16; VAR saturation: UInt16; VAR contrast: UInt16; VAR sharpness: UInt16): VideoDigitizerError;
  1669.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1670.     INLINE $2F3C, $001C, $003B, $7000, $A82A;
  1671.     {$ENDC}
  1672. FUNCTION VDGetNumberOfInputs(ci: VideoDigitizerComponent; VAR inputs: INTEGER): VideoDigitizerError;
  1673.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1674.     INLINE $2F3C, $0004, $003C, $7000, $A82A;
  1675.     {$ENDC}
  1676. FUNCTION VDGetInputFormat(ci: VideoDigitizerComponent; input: INTEGER; VAR format: INTEGER): VideoDigitizerError;
  1677.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1678.     INLINE $2F3C, $0006, $003D, $7000, $A82A;
  1679.     {$ENDC}
  1680. FUNCTION VDSetInput(ci: VideoDigitizerComponent; input: INTEGER): VideoDigitizerError;
  1681.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1682.     INLINE $2F3C, $0002, $003E, $7000, $A82A;
  1683.     {$ENDC}
  1684. FUNCTION VDGetInput(ci: VideoDigitizerComponent; VAR input: INTEGER): VideoDigitizerError;
  1685.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1686.     INLINE $2F3C, $0004, $003F, $7000, $A82A;
  1687.     {$ENDC}
  1688. FUNCTION VDSetInputStandard(ci: VideoDigitizerComponent; inputStandard: INTEGER): VideoDigitizerError;
  1689.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1690.     INLINE $2F3C, $0002, $0040, $7000, $A82A;
  1691.     {$ENDC}
  1692. FUNCTION VDSetupBuffers(ci: VideoDigitizerComponent; bufferList: VdigBufferRecListHandle): VideoDigitizerError;
  1693.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1694.     INLINE $2F3C, $0004, $0041, $7000, $A82A;
  1695.     {$ENDC}
  1696. FUNCTION VDGrabOneFrameAsync(ci: VideoDigitizerComponent; buffer: INTEGER): VideoDigitizerError;
  1697.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1698.     INLINE $2F3C, $0002, $0042, $7000, $A82A;
  1699.     {$ENDC}
  1700. FUNCTION VDDone(ci: VideoDigitizerComponent; buffer: INTEGER): VideoDigitizerError;
  1701.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1702.     INLINE $2F3C, $0002, $0043, $7000, $A82A;
  1703.     {$ENDC}
  1704. FUNCTION VDSetCompression(ci: VideoDigitizerComponent; compressType: OSType; depth: INTEGER; VAR bounds: Rect; spatialQuality: CodecQ; temporalQuality: CodecQ; keyFrameRate: LONGINT): VideoDigitizerError;
  1705.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1706.     INLINE $2F3C, $0016, $0044, $7000, $A82A;
  1707.     {$ENDC}
  1708. FUNCTION VDCompressOneFrameAsync(ci: VideoDigitizerComponent): VideoDigitizerError;
  1709.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1710.     INLINE $2F3C, $0000, $0045, $7000, $A82A;
  1711.     {$ENDC}
  1712. FUNCTION VDCompressDone(ci: VideoDigitizerComponent; VAR done: BOOLEAN; VAR theData: Ptr; VAR dataSize: LONGINT; VAR similarity: UInt8; VAR t: TimeRecord): VideoDigitizerError;
  1713.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1714.     INLINE $2F3C, $0014, $0046, $7000, $A82A;
  1715.     {$ENDC}
  1716. FUNCTION VDReleaseCompressBuffer(ci: VideoDigitizerComponent; bufferAddr: Ptr): VideoDigitizerError;
  1717.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1718.     INLINE $2F3C, $0004, $0047, $7000, $A82A;
  1719.     {$ENDC}
  1720. FUNCTION VDGetImageDescription(ci: VideoDigitizerComponent; desc: ImageDescriptionHandle): VideoDigitizerError;
  1721.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1722.     INLINE $2F3C, $0004, $0048, $7000, $A82A;
  1723.     {$ENDC}
  1724. FUNCTION VDResetCompressSequence(ci: VideoDigitizerComponent): VideoDigitizerError;
  1725.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1726.     INLINE $2F3C, $0000, $0049, $7000, $A82A;
  1727.     {$ENDC}
  1728. FUNCTION VDSetCompressionOnOff(ci: VideoDigitizerComponent; state: BOOLEAN): VideoDigitizerError;
  1729.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1730.     INLINE $2F3C, $0002, $004A, $7000, $A82A;
  1731.     {$ENDC}
  1732. FUNCTION VDGetCompressionTypes(ci: VideoDigitizerComponent; h: VDCompressionListHandle): VideoDigitizerError;
  1733.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1734.     INLINE $2F3C, $0004, $004B, $7000, $A82A;
  1735.     {$ENDC}
  1736. FUNCTION VDSetTimeBase(ci: VideoDigitizerComponent; t: TimeBase): VideoDigitizerError;
  1737.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1738.     INLINE $2F3C, $0004, $004C, $7000, $A82A;
  1739.     {$ENDC}
  1740. FUNCTION VDSetFrameRate(ci: VideoDigitizerComponent; framesPerSecond: Fixed): VideoDigitizerError;
  1741.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1742.     INLINE $2F3C, $0004, $004D, $7000, $A82A;
  1743.     {$ENDC}
  1744. FUNCTION VDGetDataRate(ci: VideoDigitizerComponent; VAR milliSecPerFrame: LONGINT; VAR framesPerSecond: Fixed; VAR bytesPerSecond: LONGINT): VideoDigitizerError;
  1745.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1746.     INLINE $2F3C, $000C, $004E, $7000, $A82A;
  1747.     {$ENDC}
  1748. FUNCTION VDGetSoundInputDriver(ci: VideoDigitizerComponent; VAR soundDriverName: Str255): VideoDigitizerError;
  1749.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1750.     INLINE $2F3C, $0004, $004F, $7000, $A82A;
  1751.     {$ENDC}
  1752. FUNCTION VDGetDMADepths(ci: VideoDigitizerComponent; VAR depthArray: LONGINT; VAR preferredDepth: LONGINT): VideoDigitizerError;
  1753.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1754.     INLINE $2F3C, $0008, $0050, $7000, $A82A;
  1755.     {$ENDC}
  1756. FUNCTION VDGetPreferredTimeScale(ci: VideoDigitizerComponent; VAR preferred: TimeScale): VideoDigitizerError;
  1757.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1758.     INLINE $2F3C, $0004, $0051, $7000, $A82A;
  1759.     {$ENDC}
  1760. FUNCTION VDReleaseAsyncBuffers(ci: VideoDigitizerComponent): VideoDigitizerError;
  1761.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1762.     INLINE $2F3C, $0000, $0052, $7000, $A82A;
  1763.     {$ENDC}
  1764. { 83 is reserved for compatibility reasons }
  1765. FUNCTION VDSetDataRate(ci: VideoDigitizerComponent; bytesPerSecond: LONGINT): VideoDigitizerError;
  1766.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1767.     INLINE $2F3C, $0004, $0054, $7000, $A82A;
  1768.     {$ENDC}
  1769. FUNCTION VDGetTimeCode(ci: VideoDigitizerComponent; VAR atTime: TimeRecord; timeCodeFormat: UNIV Ptr; timeCodeTime: UNIV Ptr): VideoDigitizerError;
  1770.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1771.     INLINE $2F3C, $000C, $0055, $7000, $A82A;
  1772.     {$ENDC}
  1773. FUNCTION VDUseSafeBuffers(ci: VideoDigitizerComponent; useSafeBuffers: BOOLEAN): VideoDigitizerError;
  1774.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1775.     INLINE $2F3C, $0002, $0056, $7000, $A82A;
  1776.     {$ENDC}
  1777. FUNCTION VDGetSoundInputSource(ci: VideoDigitizerComponent; videoInput: LONGINT; VAR soundInput: LONGINT): VideoDigitizerError;
  1778.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1779.     INLINE $2F3C, $0008, $0057, $7000, $A82A;
  1780.     {$ENDC}
  1781. FUNCTION VDGetCompressionTime(ci: VideoDigitizerComponent; compressionType: OSType; depth: INTEGER; VAR srcRect: Rect; VAR spatialQuality: CodecQ; VAR temporalQuality: CodecQ; VAR compressTime: UInt32): VideoDigitizerError;
  1782.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1783.     INLINE $2F3C, $0016, $0058, $7000, $A82A;
  1784.     {$ENDC}
  1785. FUNCTION VDSetPreferredPacketSize(ci: VideoDigitizerComponent; preferredPacketSizeInBytes: LONGINT): VideoDigitizerError;
  1786.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1787.     INLINE $2F3C, $0004, $0059, $7000, $A82A;
  1788.     {$ENDC}
  1789. FUNCTION VDSetPreferredImageDimensions(ci: VideoDigitizerComponent; width: LONGINT; height: LONGINT): VideoDigitizerError;
  1790.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1791.     INLINE $2F3C, $0008, $005A, $7000, $A82A;
  1792.     {$ENDC}
  1793. FUNCTION VDGetPreferredImageDimensions(ci: VideoDigitizerComponent; VAR width: LONGINT; VAR height: LONGINT): VideoDigitizerError;
  1794.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1795.     INLINE $2F3C, $0008, $005B, $7000, $A82A;
  1796.     {$ENDC}
  1797. FUNCTION VDGetInputName(ci: VideoDigitizerComponent; videoInput: LONGINT; VAR name: Str255): VideoDigitizerError;
  1798.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1799.     INLINE $2F3C, $0008, $005C, $7000, $A82A;
  1800.     {$ENDC}
  1801.  
  1802.  
  1803. {
  1804.     General Sequence Grab stuff
  1805. }
  1806.  
  1807. TYPE
  1808.     SeqGrabComponent                    = ComponentInstance;
  1809.     SGChannel                            = ComponentInstance;
  1810.  
  1811. CONST
  1812.     SeqGrabComponentType        = 'barg';
  1813.     SeqGrabChannelType            = 'sgch';
  1814.     SeqGrabPanelType            = 'sgpn';
  1815.     SeqGrabCompressionPanelType    = 'cmpr';
  1816.     SeqGrabSourcePanelType        = 'sour';
  1817.  
  1818.     seqGrabToDisk                = 1;
  1819.     seqGrabToMemory                = 2;
  1820.     seqGrabDontUseTempMemory    = 4;
  1821.     seqGrabAppendToFile            = 8;
  1822.     seqGrabDontAddMovieResource    = 16;
  1823.     seqGrabDontMakeMovie        = 32;
  1824.     seqGrabPreExtendFile        = 64;
  1825.     seqGrabDataProcIsInterruptSafe = 128;
  1826.     seqGrabDataProcDoesOverlappingReads = 256;
  1827.  
  1828.  
  1829. TYPE
  1830.     SeqGrabDataOutputEnum                = UInt32;
  1831.  
  1832. CONST
  1833.     seqGrabRecord                = 1;
  1834.     seqGrabPreview                = 2;
  1835.     seqGrabPlayDuringRecord        = 4;
  1836.  
  1837.  
  1838. TYPE
  1839.     SeqGrabUsageEnum                    = UInt32;
  1840.  
  1841. CONST
  1842.     seqGrabHasBounds            = 1;
  1843.     seqGrabHasVolume            = 2;
  1844.     seqGrabHasDiscreteSamples    = 4;
  1845.  
  1846.  
  1847. TYPE
  1848.     SeqGrabChannelInfoEnum                = UInt32;
  1849.     SGOutputRecordPtr = ^SGOutputRecord;
  1850.     SGOutputRecord = RECORD
  1851.         data:                    ARRAY [0..0] OF LONGINT;
  1852.     END;
  1853.  
  1854.     SGOutput                            = ^SGOutputRecord;
  1855.     SeqGrabFrameInfoPtr = ^SeqGrabFrameInfo;
  1856.     SeqGrabFrameInfo = RECORD
  1857.         frameOffset:            LONGINT;
  1858.         frameTime:                LONGINT;
  1859.         frameSize:                LONGINT;
  1860.         frameChannel:            SGChannel;
  1861.         frameRefCon:            LONGINT;
  1862.     END;
  1863.  
  1864.     SeqGrabExtendedFrameInfoPtr = ^SeqGrabExtendedFrameInfo;
  1865.     SeqGrabExtendedFrameInfo = RECORD
  1866.         frameOffset:            wide;
  1867.         frameTime:                LONGINT;
  1868.         frameSize:                LONGINT;
  1869.         frameChannel:            SGChannel;
  1870.         frameRefCon:            LONGINT;
  1871.         frameOutput:            SGOutput;
  1872.     END;
  1873.  
  1874.  
  1875. CONST
  1876.     grabPictOffScreen            = 1;
  1877.     grabPictIgnoreClip            = 2;
  1878.     grabPictCurrentImage        = 4;
  1879.  
  1880.     sgFlagControlledGrab        = $01;
  1881.  
  1882.  
  1883. TYPE
  1884. {$IFC TYPED_FUNCTION_POINTERS}
  1885.     SGDataProcPtr = FUNCTION(c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; refCon: LONGINT): OSErr;
  1886. {$ELSEC}
  1887.     SGDataProcPtr = ProcPtr;
  1888. {$ENDC}
  1889.  
  1890.     SGDataUPP = UniversalProcPtr;
  1891.     SGDeviceNamePtr = ^SGDeviceName;
  1892.     SGDeviceName = RECORD
  1893.         name:                    Str63;
  1894.         icon:                    Handle;
  1895.         flags:                    LONGINT;
  1896.         refCon:                    LONGINT;
  1897.         reserved:                LONGINT;                                {  zero }
  1898.     END;
  1899.  
  1900.  
  1901. CONST
  1902.     sgDeviceNameFlagDeviceUnavailable = $01;
  1903.  
  1904.  
  1905. TYPE
  1906.     SGDeviceListRecordPtr = ^SGDeviceListRecord;
  1907.     SGDeviceListRecord = RECORD
  1908.         count:                    INTEGER;
  1909.         selectedIndex:            INTEGER;
  1910.         reserved:                LONGINT;                                {  zero }
  1911.         entry:                    ARRAY [0..0] OF SGDeviceName;
  1912.     END;
  1913.  
  1914.     SGDeviceListPtr                        = ^SGDeviceListRecord;
  1915.     SGDeviceList                        = ^SGDeviceListPtr;
  1916.  
  1917. CONST
  1918.     sgDeviceListWithIcons        = $01;
  1919.     sgDeviceListDontCheckAvailability = $02;
  1920.  
  1921.     seqGrabWriteAppend            = 0;
  1922.     seqGrabWriteReserve            = 1;
  1923.     seqGrabWriteFill            = 2;
  1924.  
  1925.     seqGrabUnpause                = 0;
  1926.     seqGrabPause                = 1;
  1927.     seqGrabPauseForMenu            = 3;
  1928.  
  1929.     channelFlagDontOpenResFile    = 2;
  1930.     channelFlagHasDependency    = 4;
  1931.  
  1932.  
  1933. TYPE
  1934. {$IFC TYPED_FUNCTION_POINTERS}
  1935.     SGModalFilterProcPtr = FUNCTION(theDialog: DialogPtr; {CONST}VAR theEvent: EventRecord; VAR itemHit: INTEGER; refCon: LONGINT): BOOLEAN;
  1936. {$ELSEC}
  1937.     SGModalFilterProcPtr = ProcPtr;
  1938. {$ENDC}
  1939.  
  1940.     SGModalFilterUPP = UniversalProcPtr;
  1941.  
  1942. CONST
  1943.     sgPanelFlagForPanel            = 1;
  1944.  
  1945.     seqGrabSettingsPreviewOnly    = 1;
  1946.  
  1947.     channelPlayNormal            = 0;
  1948.     channelPlayFast                = 1;
  1949.     channelPlayHighQuality        = 2;
  1950.     channelPlayAllData            = 4;
  1951.  
  1952.  
  1953. FUNCTION SGInitialize(s: SeqGrabComponent): ComponentResult;
  1954.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1955.     INLINE $2F3C, $0000, $0001, $7000, $A82A;
  1956.     {$ENDC}
  1957. FUNCTION SGSetDataOutput(s: SeqGrabComponent; {CONST}VAR movieFile: FSSpec; whereFlags: LONGINT): ComponentResult;
  1958.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1959.     INLINE $2F3C, $0008, $0002, $7000, $A82A;
  1960.     {$ENDC}
  1961. FUNCTION SGGetDataOutput(s: SeqGrabComponent; VAR movieFile: FSSpec; VAR whereFlags: LONGINT): ComponentResult;
  1962.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1963.     INLINE $2F3C, $0008, $0003, $7000, $A82A;
  1964.     {$ENDC}
  1965. FUNCTION SGSetGWorld(s: SeqGrabComponent; gp: CGrafPtr; gd: GDHandle): ComponentResult;
  1966.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1967.     INLINE $2F3C, $0008, $0004, $7000, $A82A;
  1968.     {$ENDC}
  1969. FUNCTION SGGetGWorld(s: SeqGrabComponent; VAR gp: CGrafPtr; VAR gd: GDHandle): ComponentResult;
  1970.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1971.     INLINE $2F3C, $0008, $0005, $7000, $A82A;
  1972.     {$ENDC}
  1973. FUNCTION SGNewChannel(s: SeqGrabComponent; channelType: OSType; VAR ref: SGChannel): ComponentResult;
  1974.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1975.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  1976.     {$ENDC}
  1977. FUNCTION SGDisposeChannel(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  1978.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1979.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  1980.     {$ENDC}
  1981. FUNCTION SGStartPreview(s: SeqGrabComponent): ComponentResult;
  1982.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1983.     INLINE $2F3C, $0000, $0010, $7000, $A82A;
  1984.     {$ENDC}
  1985. FUNCTION SGStartRecord(s: SeqGrabComponent): ComponentResult;
  1986.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1987.     INLINE $2F3C, $0000, $0011, $7000, $A82A;
  1988.     {$ENDC}
  1989. FUNCTION SGIdle(s: SeqGrabComponent): ComponentResult;
  1990.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1991.     INLINE $2F3C, $0000, $0012, $7000, $A82A;
  1992.     {$ENDC}
  1993. FUNCTION SGStop(s: SeqGrabComponent): ComponentResult;
  1994.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1995.     INLINE $2F3C, $0000, $0013, $7000, $A82A;
  1996.     {$ENDC}
  1997. FUNCTION SGPause(s: SeqGrabComponent; pause: ByteParameter): ComponentResult;
  1998.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  1999.     INLINE $2F3C, $0002, $0014, $7000, $A82A;
  2000.     {$ENDC}
  2001. FUNCTION SGPrepare(s: SeqGrabComponent; prepareForPreview: BOOLEAN; prepareForRecord: BOOLEAN): ComponentResult;
  2002.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2003.     INLINE $2F3C, $0004, $0015, $7000, $A82A;
  2004.     {$ENDC}
  2005. FUNCTION SGRelease(s: SeqGrabComponent): ComponentResult;
  2006.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2007.     INLINE $2F3C, $0000, $0016, $7000, $A82A;
  2008.     {$ENDC}
  2009. FUNCTION SGGetMovie(s: SeqGrabComponent): Movie;
  2010.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2011.     INLINE $2F3C, $0000, $0017, $7000, $A82A;
  2012.     {$ENDC}
  2013. FUNCTION SGSetMaximumRecordTime(s: SeqGrabComponent; ticks: UInt32): ComponentResult;
  2014.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2015.     INLINE $2F3C, $0004, $0018, $7000, $A82A;
  2016.     {$ENDC}
  2017. FUNCTION SGGetMaximumRecordTime(s: SeqGrabComponent; VAR ticks: UInt32): ComponentResult;
  2018.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2019.     INLINE $2F3C, $0004, $0019, $7000, $A82A;
  2020.     {$ENDC}
  2021. FUNCTION SGGetStorageSpaceRemaining(s: SeqGrabComponent; VAR bytes: UInt32): ComponentResult;
  2022.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2023.     INLINE $2F3C, $0004, $001A, $7000, $A82A;
  2024.     {$ENDC}
  2025. FUNCTION SGGetTimeRemaining(s: SeqGrabComponent; VAR ticksLeft: LONGINT): ComponentResult;
  2026.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2027.     INLINE $2F3C, $0004, $001B, $7000, $A82A;
  2028.     {$ENDC}
  2029. FUNCTION SGGrabPict(s: SeqGrabComponent; VAR p: PicHandle; {CONST}VAR bounds: Rect; offscreenDepth: INTEGER; grabPictFlags: LONGINT): ComponentResult;
  2030.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2031.     INLINE $2F3C, $000E, $001C, $7000, $A82A;
  2032.     {$ENDC}
  2033. FUNCTION SGGetLastMovieResID(s: SeqGrabComponent; VAR resID: INTEGER): ComponentResult;
  2034.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2035.     INLINE $2F3C, $0004, $001D, $7000, $A82A;
  2036.     {$ENDC}
  2037. FUNCTION SGSetFlags(s: SeqGrabComponent; sgFlags: LONGINT): ComponentResult;
  2038.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2039.     INLINE $2F3C, $0004, $001E, $7000, $A82A;
  2040.     {$ENDC}
  2041. FUNCTION SGGetFlags(s: SeqGrabComponent; VAR sgFlags: LONGINT): ComponentResult;
  2042.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2043.     INLINE $2F3C, $0004, $001F, $7000, $A82A;
  2044.     {$ENDC}
  2045. FUNCTION SGSetDataProc(s: SeqGrabComponent; proc: SGDataUPP; refCon: LONGINT): ComponentResult;
  2046.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2047.     INLINE $2F3C, $0008, $0020, $7000, $A82A;
  2048.     {$ENDC}
  2049. FUNCTION SGNewChannelFromComponent(s: SeqGrabComponent; VAR newChannel: SGChannel; sgChannelComponent: Component): ComponentResult;
  2050.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2051.     INLINE $2F3C, $0008, $0021, $7000, $A82A;
  2052.     {$ENDC}
  2053. FUNCTION SGDisposeDeviceList(s: SeqGrabComponent; list: SGDeviceList): ComponentResult;
  2054.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2055.     INLINE $2F3C, $0004, $0022, $7000, $A82A;
  2056.     {$ENDC}
  2057. FUNCTION SGAppendDeviceListToMenu(s: SeqGrabComponent; list: SGDeviceList; mh: MenuHandle): ComponentResult;
  2058.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2059.     INLINE $2F3C, $0008, $0023, $7000, $A82A;
  2060.     {$ENDC}
  2061. FUNCTION SGSetSettings(s: SeqGrabComponent; ud: UserData; flags: LONGINT): ComponentResult;
  2062.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2063.     INLINE $2F3C, $0008, $0024, $7000, $A82A;
  2064.     {$ENDC}
  2065. FUNCTION SGGetSettings(s: SeqGrabComponent; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2066.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2067.     INLINE $2F3C, $0008, $0025, $7000, $A82A;
  2068.     {$ENDC}
  2069. FUNCTION SGGetIndChannel(s: SeqGrabComponent; index: INTEGER; VAR ref: SGChannel; VAR chanType: OSType): ComponentResult;
  2070.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2071.     INLINE $2F3C, $000A, $0026, $7000, $A82A;
  2072.     {$ENDC}
  2073. FUNCTION SGUpdate(s: SeqGrabComponent; updateRgn: RgnHandle): ComponentResult;
  2074.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2075.     INLINE $2F3C, $0004, $0027, $7000, $A82A;
  2076.     {$ENDC}
  2077. FUNCTION SGGetPause(s: SeqGrabComponent; VAR paused: Byte): ComponentResult;
  2078.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2079.     INLINE $2F3C, $0004, $0028, $7000, $A82A;
  2080.     {$ENDC}
  2081.  
  2082. TYPE
  2083.     ConstComponentListPtr                = ^Component;
  2084. FUNCTION SGSettingsDialog(s: SeqGrabComponent; c: SGChannel; numPanels: INTEGER; panelList: ConstComponentListPtr; flags: LONGINT; proc: SGModalFilterUPP; procRefNum: LONGINT): ComponentResult;
  2085.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2086.     INLINE $2F3C, $0016, $0029, $7000, $A82A;
  2087.     {$ENDC}
  2088. FUNCTION SGGetAlignmentProc(s: SeqGrabComponent; alignmentProc: ICMAlignmentProcRecordPtr): ComponentResult;
  2089.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2090.     INLINE $2F3C, $0004, $002A, $7000, $A82A;
  2091.     {$ENDC}
  2092. FUNCTION SGSetChannelSettings(s: SeqGrabComponent; c: SGChannel; ud: UserData; flags: LONGINT): ComponentResult;
  2093.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2094.     INLINE $2F3C, $000C, $002B, $7000, $A82A;
  2095.     {$ENDC}
  2096. FUNCTION SGGetChannelSettings(s: SeqGrabComponent; c: SGChannel; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2097.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2098.     INLINE $2F3C, $000C, $002C, $7000, $A82A;
  2099.     {$ENDC}
  2100. FUNCTION SGGetMode(s: SeqGrabComponent; VAR previewMode: BOOLEAN; VAR recordMode: BOOLEAN): ComponentResult;
  2101.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2102.     INLINE $2F3C, $0008, $002D, $7000, $A82A;
  2103.     {$ENDC}
  2104. FUNCTION SGSetDataRef(s: SeqGrabComponent; dataRef: Handle; dataRefType: OSType; whereFlags: LONGINT): ComponentResult;
  2105.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2106.     INLINE $2F3C, $000C, $002E, $7000, $A82A;
  2107.     {$ENDC}
  2108. FUNCTION SGGetDataRef(s: SeqGrabComponent; VAR dataRef: Handle; VAR dataRefType: OSType; VAR whereFlags: LONGINT): ComponentResult;
  2109.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2110.     INLINE $2F3C, $000C, $002F, $7000, $A82A;
  2111.     {$ENDC}
  2112. FUNCTION SGNewOutput(s: SeqGrabComponent; dataRef: Handle; dataRefType: OSType; whereFlags: LONGINT; VAR sgOut: SGOutput): ComponentResult;
  2113.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2114.     INLINE $2F3C, $0010, $0030, $7000, $A82A;
  2115.     {$ENDC}
  2116. FUNCTION SGDisposeOutput(s: SeqGrabComponent; sgOut: SGOutput): ComponentResult;
  2117.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2118.     INLINE $2F3C, $0004, $0031, $7000, $A82A;
  2119.     {$ENDC}
  2120. FUNCTION SGSetOutputFlags(s: SeqGrabComponent; sgOut: SGOutput; whereFlags: LONGINT): ComponentResult;
  2121.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2122.     INLINE $2F3C, $0008, $0032, $7000, $A82A;
  2123.     {$ENDC}
  2124. FUNCTION SGSetChannelOutput(s: SeqGrabComponent; c: SGChannel; sgOut: SGOutput): ComponentResult;
  2125.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2126.     INLINE $2F3C, $0008, $0033, $7000, $A82A;
  2127.     {$ENDC}
  2128. FUNCTION SGGetDataOutputStorageSpaceRemaining(s: SeqGrabComponent; sgOut: SGOutput; VAR space: UInt32): ComponentResult;
  2129.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2130.     INLINE $2F3C, $0008, $0034, $7000, $A82A;
  2131.     {$ENDC}
  2132. FUNCTION SGHandleUpdateEvent(s: SeqGrabComponent; {CONST}VAR event: EventRecord; VAR handled: BOOLEAN): ComponentResult;
  2133.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2134.     INLINE $2F3C, $0008, $0035, $7000, $A82A;
  2135.     {$ENDC}
  2136. FUNCTION SGSetOutputNextOutput(s: SeqGrabComponent; sgOut: SGOutput; nextOut: SGOutput): ComponentResult;
  2137.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2138.     INLINE $2F3C, $0008, $0036, $7000, $A82A;
  2139.     {$ENDC}
  2140. FUNCTION SGGetOutputNextOutput(s: SeqGrabComponent; sgOut: SGOutput; VAR nextOut: SGOutput): ComponentResult;
  2141.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2142.     INLINE $2F3C, $0008, $0037, $7000, $A82A;
  2143.     {$ENDC}
  2144. FUNCTION SGSetOutputMaximumOffset(s: SeqGrabComponent; sgOut: SGOutput; {CONST}VAR maxOffset: wide): ComponentResult;
  2145.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2146.     INLINE $2F3C, $0008, $0038, $7000, $A82A;
  2147.     {$ENDC}
  2148. FUNCTION SGGetOutputMaximumOffset(s: SeqGrabComponent; sgOut: SGOutput; VAR maxOffset: wide): ComponentResult;
  2149.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2150.     INLINE $2F3C, $0008, $0039, $7000, $A82A;
  2151.     {$ENDC}
  2152. FUNCTION SGGetOutputDataReference(s: SeqGrabComponent; sgOut: SGOutput; VAR dataRef: Handle; VAR dataRefType: OSType): ComponentResult;
  2153.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2154.     INLINE $2F3C, $000C, $003A, $7000, $A82A;
  2155.     {$ENDC}
  2156. FUNCTION SGWriteExtendedMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: wide; VAR sgOut: SGOutput): ComponentResult;
  2157.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2158.     INLINE $2F3C, $0014, $003B, $7000, $A82A;
  2159.     {$ENDC}
  2160. {
  2161.     calls from Channel to seqGrab
  2162. }
  2163. FUNCTION SGWriteMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT): ComponentResult;
  2164.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2165.     INLINE $2F3C, $0010, $0100, $7000, $A82A;
  2166.     {$ENDC}
  2167. FUNCTION SGAddFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabFrameInfoPtr): ComponentResult;
  2168.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2169.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2170.     {$ENDC}
  2171. FUNCTION SGGetNextFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabFrameInfoPtr; VAR frameDuration: TimeValue; VAR frameNumber: LONGINT): ComponentResult;
  2172.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2173.     INLINE $2F3C, $000C, $0102, $7000, $A82A;
  2174.     {$ENDC}
  2175. FUNCTION SGGetTimeBase(s: SeqGrabComponent; VAR tb: TimeBase): ComponentResult;
  2176.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2177.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2178.     {$ENDC}
  2179. FUNCTION SGSortDeviceList(s: SeqGrabComponent; list: SGDeviceList): ComponentResult;
  2180.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2181.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  2182.     {$ENDC}
  2183. FUNCTION SGAddMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER): ComponentResult;
  2184.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2185.     INLINE $2F3C, $001A, $0105, $7000, $A82A;
  2186.     {$ENDC}
  2187. FUNCTION SGChangedSource(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  2188.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2189.     INLINE $2F3C, $0004, $0106, $7000, $A82A;
  2190.     {$ENDC}
  2191. FUNCTION SGAddExtendedFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabExtendedFrameInfoPtr): ComponentResult;
  2192.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2193.     INLINE $2F3C, $0004, $0107, $7000, $A82A;
  2194.     {$ENDC}
  2195. FUNCTION SGGetNextExtendedFrameReference(s: SeqGrabComponent; frameInfo: SeqGrabExtendedFrameInfoPtr; VAR frameDuration: TimeValue; VAR frameNumber: LONGINT): ComponentResult;
  2196.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2197.     INLINE $2F3C, $000C, $0108, $7000, $A82A;
  2198.     {$ENDC}
  2199. FUNCTION SGAddExtendedMovieData(s: SeqGrabComponent; c: SGChannel; p: Ptr; len: LONGINT; VAR offset: wide; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; VAR whichOutput: SGOutput): ComponentResult;
  2200.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2201.     INLINE $2F3C, $001E, $0109, $7000, $A82A;
  2202.     {$ENDC}
  2203. FUNCTION SGAddOutputDataRefToMedia(s: SeqGrabComponent; sgOut: SGOutput; theMedia: Media; desc: SampleDescriptionHandle): ComponentResult;
  2204.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2205.     INLINE $2F3C, $000C, $010A, $7000, $A82A;
  2206.     {$ENDC}
  2207.  
  2208.  
  2209. {** Sequence Grab CHANNEL Component Stuff **}
  2210.  
  2211. FUNCTION SGSetChannelUsage(c: SGChannel; usage: LONGINT): ComponentResult;
  2212.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2213.     INLINE $2F3C, $0004, $0080, $7000, $A82A;
  2214.     {$ENDC}
  2215. FUNCTION SGGetChannelUsage(c: SGChannel; VAR usage: LONGINT): ComponentResult;
  2216.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2217.     INLINE $2F3C, $0004, $0081, $7000, $A82A;
  2218.     {$ENDC}
  2219. FUNCTION SGSetChannelBounds(c: SGChannel; {CONST}VAR bounds: Rect): ComponentResult;
  2220.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2221.     INLINE $2F3C, $0004, $0082, $7000, $A82A;
  2222.     {$ENDC}
  2223. FUNCTION SGGetChannelBounds(c: SGChannel; VAR bounds: Rect): ComponentResult;
  2224.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2225.     INLINE $2F3C, $0004, $0083, $7000, $A82A;
  2226.     {$ENDC}
  2227. FUNCTION SGSetChannelVolume(c: SGChannel; volume: INTEGER): ComponentResult;
  2228.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2229.     INLINE $2F3C, $0002, $0084, $7000, $A82A;
  2230.     {$ENDC}
  2231. FUNCTION SGGetChannelVolume(c: SGChannel; VAR volume: INTEGER): ComponentResult;
  2232.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2233.     INLINE $2F3C, $0004, $0085, $7000, $A82A;
  2234.     {$ENDC}
  2235. FUNCTION SGGetChannelInfo(c: SGChannel; VAR channelInfo: LONGINT): ComponentResult;
  2236.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2237.     INLINE $2F3C, $0004, $0086, $7000, $A82A;
  2238.     {$ENDC}
  2239. FUNCTION SGSetChannelPlayFlags(c: SGChannel; playFlags: LONGINT): ComponentResult;
  2240.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2241.     INLINE $2F3C, $0004, $0087, $7000, $A82A;
  2242.     {$ENDC}
  2243. FUNCTION SGGetChannelPlayFlags(c: SGChannel; VAR playFlags: LONGINT): ComponentResult;
  2244.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2245.     INLINE $2F3C, $0004, $0088, $7000, $A82A;
  2246.     {$ENDC}
  2247. FUNCTION SGSetChannelMaxFrames(c: SGChannel; frameCount: LONGINT): ComponentResult;
  2248.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2249.     INLINE $2F3C, $0004, $0089, $7000, $A82A;
  2250.     {$ENDC}
  2251. FUNCTION SGGetChannelMaxFrames(c: SGChannel; VAR frameCount: LONGINT): ComponentResult;
  2252.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2253.     INLINE $2F3C, $0004, $008A, $7000, $A82A;
  2254.     {$ENDC}
  2255. FUNCTION SGSetChannelRefCon(c: SGChannel; refCon: LONGINT): ComponentResult;
  2256.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2257.     INLINE $2F3C, $0004, $008B, $7000, $A82A;
  2258.     {$ENDC}
  2259. FUNCTION SGSetChannelClip(c: SGChannel; theClip: RgnHandle): ComponentResult;
  2260.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2261.     INLINE $2F3C, $0004, $008C, $7000, $A82A;
  2262.     {$ENDC}
  2263. FUNCTION SGGetChannelClip(c: SGChannel; VAR theClip: RgnHandle): ComponentResult;
  2264.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2265.     INLINE $2F3C, $0004, $008D, $7000, $A82A;
  2266.     {$ENDC}
  2267. FUNCTION SGGetChannelSampleDescription(c: SGChannel; sampleDesc: Handle): ComponentResult;
  2268.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2269.     INLINE $2F3C, $0004, $008E, $7000, $A82A;
  2270.     {$ENDC}
  2271. FUNCTION SGGetChannelDeviceList(c: SGChannel; selectionFlags: LONGINT; VAR list: SGDeviceList): ComponentResult;
  2272.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2273.     INLINE $2F3C, $0008, $008F, $7000, $A82A;
  2274.     {$ENDC}
  2275. FUNCTION SGSetChannelDevice(c: SGChannel; name: StringPtr): ComponentResult;
  2276.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2277.     INLINE $2F3C, $0004, $0090, $7000, $A82A;
  2278.     {$ENDC}
  2279. FUNCTION SGSetChannelMatrix(c: SGChannel; {CONST}VAR m: MatrixRecord): ComponentResult;
  2280.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2281.     INLINE $2F3C, $0004, $0091, $7000, $A82A;
  2282.     {$ENDC}
  2283. FUNCTION SGGetChannelMatrix(c: SGChannel; VAR m: MatrixRecord): ComponentResult;
  2284.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2285.     INLINE $2F3C, $0004, $0092, $7000, $A82A;
  2286.     {$ENDC}
  2287. FUNCTION SGGetChannelTimeScale(c: SGChannel; VAR scale: TimeScale): ComponentResult;
  2288.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2289.     INLINE $2F3C, $0004, $0093, $7000, $A82A;
  2290.     {$ENDC}
  2291. FUNCTION SGChannelPutPicture(c: SGChannel): ComponentResult;
  2292.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2293.     INLINE $2F3C, $0000, $0094, $7000, $A82A;
  2294.     {$ENDC}
  2295. FUNCTION SGChannelSetRequestedDataRate(c: SGChannel; bytesPerSecond: LONGINT): ComponentResult;
  2296.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2297.     INLINE $2F3C, $0004, $0095, $7000, $A82A;
  2298.     {$ENDC}
  2299. FUNCTION SGChannelGetRequestedDataRate(c: SGChannel; VAR bytesPerSecond: LONGINT): ComponentResult;
  2300.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2301.     INLINE $2F3C, $0004, $0096, $7000, $A82A;
  2302.     {$ENDC}
  2303. FUNCTION SGChannelSetDataSourceName(c: SGChannel; name: Str255; scriptTag: ScriptCode): ComponentResult;
  2304.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2305.     INLINE $2F3C, $0006, $0097, $7000, $A82A;
  2306.     {$ENDC}
  2307. FUNCTION SGChannelGetDataSourceName(c: SGChannel; VAR name: Str255; VAR scriptTag: ScriptCode): ComponentResult;
  2308.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2309.     INLINE $2F3C, $0008, $0098, $7000, $A82A;
  2310.     {$ENDC}
  2311. {
  2312.     calls from seqGrab to Channel
  2313. }
  2314. FUNCTION SGInitChannel(c: SGChannel; owner: SeqGrabComponent): ComponentResult;
  2315.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2316.     INLINE $2F3C, $0004, $0180, $7000, $A82A;
  2317.     {$ENDC}
  2318. FUNCTION SGWriteSamples(c: SGChannel; m: Movie; theFile: AliasHandle): ComponentResult;
  2319.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2320.     INLINE $2F3C, $0008, $0181, $7000, $A82A;
  2321.     {$ENDC}
  2322. FUNCTION SGGetDataRate(c: SGChannel; VAR bytesPerSecond: LONGINT): ComponentResult;
  2323.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2324.     INLINE $2F3C, $0004, $0182, $7000, $A82A;
  2325.     {$ENDC}
  2326. FUNCTION SGAlignChannelRect(c: SGChannel; VAR r: Rect): ComponentResult;
  2327.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2328.     INLINE $2F3C, $0004, $0183, $7000, $A82A;
  2329.     {$ENDC}
  2330. {
  2331.     Dorky dialog panel calls
  2332. }
  2333. FUNCTION SGPanelGetDitl(s: SeqGrabComponent; VAR ditl: Handle): ComponentResult;
  2334.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2335.     INLINE $2F3C, $0004, $0200, $7000, $A82A;
  2336.     {$ENDC}
  2337. FUNCTION SGPanelGetTitle(s: SeqGrabComponent; VAR title: Str255): ComponentResult;
  2338.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2339.     INLINE $2F3C, $0004, $0201, $7000, $A82A;
  2340.     {$ENDC}
  2341. FUNCTION SGPanelCanRun(s: SeqGrabComponent; c: SGChannel): ComponentResult;
  2342.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2343.     INLINE $2F3C, $0004, $0202, $7000, $A82A;
  2344.     {$ENDC}
  2345. FUNCTION SGPanelInstall(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER): ComponentResult;
  2346.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2347.     INLINE $2F3C, $000A, $0203, $7000, $A82A;
  2348.     {$ENDC}
  2349. FUNCTION SGPanelEvent(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER; {CONST}VAR theEvent: EventRecord; VAR itemHit: INTEGER; VAR handled: BOOLEAN): ComponentResult;
  2350.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2351.     INLINE $2F3C, $0016, $0204, $7000, $A82A;
  2352.     {$ENDC}
  2353. FUNCTION SGPanelItem(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER; itemNum: INTEGER): ComponentResult;
  2354.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2355.     INLINE $2F3C, $000C, $0205, $7000, $A82A;
  2356.     {$ENDC}
  2357. FUNCTION SGPanelRemove(s: SeqGrabComponent; c: SGChannel; d: DialogPtr; itemOffset: INTEGER): ComponentResult;
  2358.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2359.     INLINE $2F3C, $000A, $0206, $7000, $A82A;
  2360.     {$ENDC}
  2361. FUNCTION SGPanelSetGrabber(s: SeqGrabComponent; sg: SeqGrabComponent): ComponentResult;
  2362.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2363.     INLINE $2F3C, $0004, $0207, $7000, $A82A;
  2364.     {$ENDC}
  2365. FUNCTION SGPanelSetResFile(s: SeqGrabComponent; resRef: INTEGER): ComponentResult;
  2366.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2367.     INLINE $2F3C, $0002, $0208, $7000, $A82A;
  2368.     {$ENDC}
  2369. FUNCTION SGPanelGetSettings(s: SeqGrabComponent; c: SGChannel; VAR ud: UserData; flags: LONGINT): ComponentResult;
  2370.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2371.     INLINE $2F3C, $000C, $0209, $7000, $A82A;
  2372.     {$ENDC}
  2373. FUNCTION SGPanelSetSettings(s: SeqGrabComponent; c: SGChannel; ud: UserData; flags: LONGINT): ComponentResult;
  2374.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2375.     INLINE $2F3C, $000C, $020A, $7000, $A82A;
  2376.     {$ENDC}
  2377. FUNCTION SGPanelValidateInput(s: SeqGrabComponent; VAR ok: BOOLEAN): ComponentResult;
  2378.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2379.     INLINE $2F3C, $0004, $020B, $7000, $A82A;
  2380.     {$ENDC}
  2381. FUNCTION SGPanelSetEventFilter(s: SeqGrabComponent; proc: SGModalFilterUPP; refCon: LONGINT): ComponentResult;
  2382.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2383.     INLINE $2F3C, $0008, $020C, $7000, $A82A;
  2384.     {$ENDC}
  2385.  
  2386. {** Sequence Grab VIDEO CHANNEL Component Stuff **}
  2387. {
  2388.     Video stuff
  2389. }
  2390.  
  2391. TYPE
  2392.     SGCompressInfoPtr = ^SGCompressInfo;
  2393.     SGCompressInfo = RECORD
  2394.         buffer:                    Ptr;
  2395.         bufferSize:                UInt32;
  2396.         similarity:                SInt8;
  2397.         reserved:                SInt8;
  2398.     END;
  2399.  
  2400. {$IFC TYPED_FUNCTION_POINTERS}
  2401.     SGGrabBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT): ComponentResult;
  2402. {$ELSEC}
  2403.     SGGrabBottleProcPtr = ProcPtr;
  2404. {$ENDC}
  2405.  
  2406. {$IFC TYPED_FUNCTION_POINTERS}
  2407.     SGGrabCompleteBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; refCon: LONGINT): ComponentResult;
  2408. {$ELSEC}
  2409.     SGGrabCompleteBottleProcPtr = ProcPtr;
  2410. {$ENDC}
  2411.  
  2412. {$IFC TYPED_FUNCTION_POINTERS}
  2413.     SGDisplayBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2414. {$ELSEC}
  2415.     SGDisplayBottleProcPtr = ProcPtr;
  2416. {$ENDC}
  2417.  
  2418. {$IFC TYPED_FUNCTION_POINTERS}
  2419.     SGCompressBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT): ComponentResult;
  2420. {$ELSEC}
  2421.     SGCompressBottleProcPtr = ProcPtr;
  2422. {$ENDC}
  2423.  
  2424. {$IFC TYPED_FUNCTION_POINTERS}
  2425.     SGCompressCompleteBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo; refCon: LONGINT): ComponentResult;
  2426. {$ELSEC}
  2427.     SGCompressCompleteBottleProcPtr = ProcPtr;
  2428. {$ENDC}
  2429.  
  2430. {$IFC TYPED_FUNCTION_POINTERS}
  2431.     SGAddFrameBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; {CONST}VAR ci: SGCompressInfo; refCon: LONGINT): ComponentResult;
  2432. {$ELSEC}
  2433.     SGAddFrameBottleProcPtr = ProcPtr;
  2434. {$ENDC}
  2435.  
  2436. {$IFC TYPED_FUNCTION_POINTERS}
  2437.     SGTransferFrameBottleProcPtr = FUNCTION(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2438. {$ELSEC}
  2439.     SGTransferFrameBottleProcPtr = ProcPtr;
  2440. {$ENDC}
  2441.  
  2442. {$IFC TYPED_FUNCTION_POINTERS}
  2443.     SGGrabCompressCompleteBottleProcPtr = FUNCTION(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR t: TimeRecord; refCon: LONGINT): ComponentResult;
  2444. {$ELSEC}
  2445.     SGGrabCompressCompleteBottleProcPtr = ProcPtr;
  2446. {$ENDC}
  2447.  
  2448. {$IFC TYPED_FUNCTION_POINTERS}
  2449.     SGDisplayCompressBottleProcPtr = FUNCTION(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT): ComponentResult;
  2450. {$ELSEC}
  2451.     SGDisplayCompressBottleProcPtr = ProcPtr;
  2452. {$ENDC}
  2453.  
  2454.     SGGrabBottleUPP = UniversalProcPtr;
  2455.     SGGrabCompleteBottleUPP = UniversalProcPtr;
  2456.     SGDisplayBottleUPP = UniversalProcPtr;
  2457.     SGCompressBottleUPP = UniversalProcPtr;
  2458.     SGCompressCompleteBottleUPP = UniversalProcPtr;
  2459.     SGAddFrameBottleUPP = UniversalProcPtr;
  2460.     SGTransferFrameBottleUPP = UniversalProcPtr;
  2461.     SGGrabCompressCompleteBottleUPP = UniversalProcPtr;
  2462.     SGDisplayCompressBottleUPP = UniversalProcPtr;
  2463.     VideoBottlesPtr = ^VideoBottles;
  2464.     VideoBottles = RECORD
  2465.         procCount:                INTEGER;
  2466.         grabProc:                SGGrabBottleUPP;
  2467.         grabCompleteProc:        SGGrabCompleteBottleUPP;
  2468.         displayProc:            SGDisplayBottleUPP;
  2469.         compressProc:            SGCompressBottleUPP;
  2470.         compressCompleteProc:    SGCompressCompleteBottleUPP;
  2471.         addFrameProc:            SGAddFrameBottleUPP;
  2472.         transferFrameProc:        SGTransferFrameBottleUPP;
  2473.         grabCompressCompleteProc: SGGrabCompressCompleteBottleUPP;
  2474.         displayCompressProc:    SGDisplayCompressBottleUPP;
  2475.     END;
  2476.  
  2477. FUNCTION SGGetSrcVideoBounds(c: SGChannel; VAR r: Rect): ComponentResult;
  2478.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2479.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2480.     {$ENDC}
  2481. FUNCTION SGSetVideoRect(c: SGChannel; {CONST}VAR r: Rect): ComponentResult;
  2482.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2483.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2484.     {$ENDC}
  2485. FUNCTION SGGetVideoRect(c: SGChannel; VAR r: Rect): ComponentResult;
  2486.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2487.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  2488.     {$ENDC}
  2489. FUNCTION SGGetVideoCompressorType(c: SGChannel; VAR compressorType: OSType): ComponentResult;
  2490.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2491.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2492.     {$ENDC}
  2493. FUNCTION SGSetVideoCompressorType(c: SGChannel; compressorType: OSType): ComponentResult;
  2494.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2495.     INLINE $2F3C, $0004, $0104, $7000, $A82A;
  2496.     {$ENDC}
  2497. FUNCTION SGSetVideoCompressor(c: SGChannel; depth: INTEGER; compressor: CompressorComponent; spatialQuality: CodecQ; temporalQuality: CodecQ; keyFrameRate: LONGINT): ComponentResult;
  2498.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2499.     INLINE $2F3C, $0012, $0105, $7000, $A82A;
  2500.     {$ENDC}
  2501. FUNCTION SGGetVideoCompressor(c: SGChannel; VAR depth: INTEGER; VAR compressor: CompressorComponent; VAR spatialQuality: CodecQ; VAR temporalQuality: CodecQ; VAR keyFrameRate: LONGINT): ComponentResult;
  2502.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2503.     INLINE $2F3C, $0014, $0106, $7000, $A82A;
  2504.     {$ENDC}
  2505. FUNCTION SGGetVideoDigitizerComponent(c: SGChannel): ComponentInstance;
  2506.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2507.     INLINE $2F3C, $0000, $0107, $7000, $A82A;
  2508.     {$ENDC}
  2509. FUNCTION SGSetVideoDigitizerComponent(c: SGChannel; vdig: ComponentInstance): ComponentResult;
  2510.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2511.     INLINE $2F3C, $0004, $0108, $7000, $A82A;
  2512.     {$ENDC}
  2513. FUNCTION SGVideoDigitizerChanged(c: SGChannel): ComponentResult;
  2514.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2515.     INLINE $2F3C, $0000, $0109, $7000, $A82A;
  2516.     {$ENDC}
  2517. FUNCTION SGSetVideoBottlenecks(c: SGChannel; VAR vb: VideoBottles): ComponentResult;
  2518.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2519.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  2520.     {$ENDC}
  2521. FUNCTION SGGetVideoBottlenecks(c: SGChannel; VAR vb: VideoBottles): ComponentResult;
  2522.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2523.     INLINE $2F3C, $0004, $010B, $7000, $A82A;
  2524.     {$ENDC}
  2525. FUNCTION SGGrabFrame(c: SGChannel; bufferNum: INTEGER): ComponentResult;
  2526.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2527.     INLINE $2F3C, $0002, $010C, $7000, $A82A;
  2528.     {$ENDC}
  2529. FUNCTION SGGrabFrameComplete(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN): ComponentResult;
  2530.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2531.     INLINE $2F3C, $0006, $010D, $7000, $A82A;
  2532.     {$ENDC}
  2533. FUNCTION SGDisplayFrame(c: SGChannel; bufferNum: INTEGER; {CONST}VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2534.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2535.     INLINE $2F3C, $000A, $010E, $7000, $A82A;
  2536.     {$ENDC}
  2537. FUNCTION SGCompressFrame(c: SGChannel; bufferNum: INTEGER): ComponentResult;
  2538.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2539.     INLINE $2F3C, $0002, $010F, $7000, $A82A;
  2540.     {$ENDC}
  2541. FUNCTION SGCompressFrameComplete(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo): ComponentResult;
  2542.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2543.     INLINE $2F3C, $000A, $0110, $7000, $A82A;
  2544.     {$ENDC}
  2545. FUNCTION SGAddFrame(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; {CONST}VAR ci: SGCompressInfo): ComponentResult;
  2546.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2547.     INLINE $2F3C, $000E, $0111, $7000, $A82A;
  2548.     {$ENDC}
  2549. FUNCTION SGTransferFrameForCompress(c: SGChannel; bufferNum: INTEGER; {CONST}VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2550.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2551.     INLINE $2F3C, $000A, $0112, $7000, $A82A;
  2552.     {$ENDC}
  2553. FUNCTION SGSetCompressBuffer(c: SGChannel; depth: INTEGER; {CONST}VAR compressSize: Rect): ComponentResult;
  2554.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2555.     INLINE $2F3C, $0006, $0113, $7000, $A82A;
  2556.     {$ENDC}
  2557. FUNCTION SGGetCompressBuffer(c: SGChannel; VAR depth: INTEGER; VAR compressSize: Rect): ComponentResult;
  2558.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2559.     INLINE $2F3C, $0008, $0114, $7000, $A82A;
  2560.     {$ENDC}
  2561. FUNCTION SGGetBufferInfo(c: SGChannel; bufferNum: INTEGER; VAR bufferPM: PixMapHandle; VAR bufferRect: Rect; VAR compressBuffer: GWorldPtr; VAR compressBufferRect: Rect): ComponentResult;
  2562.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2563.     INLINE $2F3C, $0012, $0115, $7000, $A82A;
  2564.     {$ENDC}
  2565. FUNCTION SGSetUseScreenBuffer(c: SGChannel; useScreenBuffer: BOOLEAN): ComponentResult;
  2566.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2567.     INLINE $2F3C, $0002, $0116, $7000, $A82A;
  2568.     {$ENDC}
  2569. FUNCTION SGGetUseScreenBuffer(c: SGChannel; VAR useScreenBuffer: BOOLEAN): ComponentResult;
  2570.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2571.     INLINE $2F3C, $0004, $0117, $7000, $A82A;
  2572.     {$ENDC}
  2573. FUNCTION SGGrabCompressComplete(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR tr: TimeRecord): ComponentResult;
  2574.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2575.     INLINE $2F3C, $000C, $0118, $7000, $A82A;
  2576.     {$ENDC}
  2577. FUNCTION SGDisplayCompress(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle): ComponentResult;
  2578.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2579.     INLINE $2F3C, $0010, $0119, $7000, $A82A;
  2580.     {$ENDC}
  2581. FUNCTION SGSetFrameRate(c: SGChannel; frameRate: Fixed): ComponentResult;
  2582.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2583.     INLINE $2F3C, $0004, $011A, $7000, $A82A;
  2584.     {$ENDC}
  2585. FUNCTION SGGetFrameRate(c: SGChannel; VAR frameRate: Fixed): ComponentResult;
  2586.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2587.     INLINE $2F3C, $0004, $011B, $7000, $A82A;
  2588.     {$ENDC}
  2589.  
  2590. FUNCTION SGSetPreferredPacketSize(c: SGChannel; preferredPacketSizeInBytes: LONGINT): ComponentResult;
  2591.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2592.     INLINE $2F3C, $0004, $0121, $7000, $A82A;
  2593.     {$ENDC}
  2594. FUNCTION SGGetPreferredPacketSize(c: SGChannel; VAR preferredPacketSizeInBytes: LONGINT): ComponentResult;
  2595.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2596.     INLINE $2F3C, $0004, $0122, $7000, $A82A;
  2597.     {$ENDC}
  2598. FUNCTION SGSetUserVideoCompressorList(c: SGChannel; compressorTypes: Handle): ComponentResult;
  2599.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2600.     INLINE $2F3C, $0004, $0123, $7000, $A82A;
  2601.     {$ENDC}
  2602. FUNCTION SGGetUserVideoCompressorList(c: SGChannel; VAR compressorTypes: Handle): ComponentResult;
  2603.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2604.     INLINE $2F3C, $0004, $0124, $7000, $A82A;
  2605.     {$ENDC}
  2606. {** Sequence Grab SOUND CHANNEL Component Stuff **}
  2607.  
  2608. {
  2609.     Sound stuff
  2610. }
  2611. FUNCTION SGSetSoundInputDriver(c: SGChannel; driverName: Str255): ComponentResult;
  2612.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2613.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2614.     {$ENDC}
  2615. FUNCTION SGGetSoundInputDriver(c: SGChannel): LONGINT;
  2616.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2617.     INLINE $2F3C, $0000, $0101, $7000, $A82A;
  2618.     {$ENDC}
  2619. FUNCTION SGSoundInputDriverChanged(c: SGChannel): ComponentResult;
  2620.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2621.     INLINE $2F3C, $0000, $0102, $7000, $A82A;
  2622.     {$ENDC}
  2623. FUNCTION SGSetSoundRecordChunkSize(c: SGChannel; seconds: LONGINT): ComponentResult;
  2624.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2625.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2626.     {$ENDC}
  2627. FUNCTION SGGetSoundRecordChunkSize(c: SGChannel): LONGINT;
  2628.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2629.     INLINE $2F3C, $0000, $0104, $7000, $A82A;
  2630.     {$ENDC}
  2631. FUNCTION SGSetSoundInputRate(c: SGChannel; rate: Fixed): ComponentResult;
  2632.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2633.     INLINE $2F3C, $0004, $0105, $7000, $A82A;
  2634.     {$ENDC}
  2635. FUNCTION SGGetSoundInputRate(c: SGChannel): Fixed;
  2636.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2637.     INLINE $2F3C, $0000, $0106, $7000, $A82A;
  2638.     {$ENDC}
  2639. FUNCTION SGSetSoundInputParameters(c: SGChannel; sampleSize: INTEGER; numChannels: INTEGER; compressionType: OSType): ComponentResult;
  2640.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2641.     INLINE $2F3C, $0008, $0107, $7000, $A82A;
  2642.     {$ENDC}
  2643. FUNCTION SGGetSoundInputParameters(c: SGChannel; VAR sampleSize: INTEGER; VAR numChannels: INTEGER; VAR compressionType: OSType): ComponentResult;
  2644.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2645.     INLINE $2F3C, $000C, $0108, $7000, $A82A;
  2646.     {$ENDC}
  2647. FUNCTION SGSetAdditionalSoundRates(c: SGChannel; rates: Handle): ComponentResult;
  2648.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2649.     INLINE $2F3C, $0004, $0109, $7000, $A82A;
  2650.     {$ENDC}
  2651. FUNCTION SGGetAdditionalSoundRates(c: SGChannel; VAR rates: Handle): ComponentResult;
  2652.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2653.     INLINE $2F3C, $0004, $010A, $7000, $A82A;
  2654.     {$ENDC}
  2655. {
  2656.     Text stuff
  2657. }
  2658. FUNCTION SGSetFontName(c: SGChannel; pstr: StringPtr): ComponentResult;
  2659.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2660.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2661.     {$ENDC}
  2662. FUNCTION SGSetFontSize(c: SGChannel; fontSize: INTEGER): ComponentResult;
  2663.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2664.     INLINE $2F3C, $0002, $0101, $7000, $A82A;
  2665.     {$ENDC}
  2666. FUNCTION SGSetTextForeColor(c: SGChannel; VAR theColor: RGBColor): ComponentResult;
  2667.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2668.     INLINE $2F3C, $0004, $0102, $7000, $A82A;
  2669.     {$ENDC}
  2670. FUNCTION SGSetTextBackColor(c: SGChannel; VAR theColor: RGBColor): ComponentResult;
  2671.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2672.     INLINE $2F3C, $0004, $0103, $7000, $A82A;
  2673.     {$ENDC}
  2674. FUNCTION SGSetJustification(c: SGChannel; just: INTEGER): ComponentResult;
  2675.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2676.     INLINE $2F3C, $0002, $0104, $7000, $A82A;
  2677.     {$ENDC}
  2678. FUNCTION SGGetTextReturnToSpaceValue(c: SGChannel; VAR rettospace: INTEGER): ComponentResult;
  2679.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2680.     INLINE $2F3C, $0004, $0105, $7000, $A82A;
  2681.     {$ENDC}
  2682. FUNCTION SGSetTextReturnToSpaceValue(c: SGChannel; rettospace: INTEGER): ComponentResult;
  2683.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2684.     INLINE $2F3C, $0002, $0106, $7000, $A82A;
  2685.     {$ENDC}
  2686. {
  2687.     Music stuff
  2688. }
  2689. FUNCTION SGGetInstrument(c: SGChannel; VAR td: ToneDescription): ComponentResult;
  2690.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2691.     INLINE $2F3C, $0004, $0100, $7000, $A82A;
  2692.     {$ENDC}
  2693. FUNCTION SGSetInstrument(c: SGChannel; VAR td: ToneDescription): ComponentResult;
  2694.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2695.     INLINE $2F3C, $0004, $0101, $7000, $A82A;
  2696.     {$ENDC}
  2697.  
  2698.  
  2699. CONST
  2700.     sgChannelAtom                = 'chan';
  2701.     sgChannelSettingsAtom        = 'ctom';
  2702.     sgChannelDescription        = 'cdsc';
  2703.     sgChannelSettings            = 'cset';
  2704.  
  2705.     sgDeviceNameType            = 'name';
  2706.     sgUsageType                    = 'use ';
  2707.     sgPlayFlagsType                = 'plyf';
  2708.     sgClipType                    = 'clip';
  2709.     sgMatrixType                = 'mtrx';
  2710.     sgVolumeType                = 'volu';
  2711.  
  2712.     sgPanelSettingsAtom            = 'ptom';
  2713.     sgPanelDescription            = 'pdsc';
  2714.     sgPanelSettings                = 'pset';
  2715.  
  2716.     sgcSoundCompressionType        = 'scmp';
  2717.     sgcSoundSampleRateType        = 'srat';
  2718.     sgcSoundChannelCountType    = 'schn';
  2719.     sgcSoundSampleSizeType        = 'ssiz';
  2720.     sgcSoundInputType            = 'sinp';
  2721.     sgcSoundGainType            = 'gain';
  2722.  
  2723.     sgcVideoHueType                = 'hue ';
  2724.     sgcVideoSaturationType        = 'satr';
  2725.     sgcVideoContrastType        = 'trst';
  2726.     sgcVideoSharpnessType        = 'shrp';
  2727.     sgcVideoBrigtnessType        = 'brit';
  2728.     sgcVideoBlackLevelType        = 'blkl';
  2729.     sgcVideoWhiteLevelType        = 'whtl';
  2730.     sgcVideoInputType            = 'vinp';
  2731.     sgcVideoFormatType            = 'vstd';
  2732.     sgcVideoFilterType            = 'vflt';
  2733.     sgcVideoRectType            = 'vrct';
  2734.     sgcVideoDigitizerType        = 'vdig';
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740. TYPE
  2741.     QTVideoOutputComponent                = ComponentInstance;
  2742. {  Component type and subtype enumerations }
  2743.  
  2744. CONST
  2745.     QTVideoOutputComponentType    = 'vout';
  2746.     QTVideoOutputComponentBaseSubType = 'base';
  2747.  
  2748.  
  2749. {  QTVideoOutput Component flags }
  2750.  
  2751.     kQTVideoOutputDontDisplayToUser = $00000001;
  2752.  
  2753. {  Display mode atom types }
  2754.  
  2755.     kQTVODisplayModeItem        = 'qdmi';
  2756.     kQTVODimensions                = 'dimn';                        {  atom contains two longs - pixel count - width, height }
  2757.     kQTVOResolution                = 'resl';                        {  atom contains two Fixed - hRes, vRes in dpi }
  2758.     kQTVORefreshRate            = 'refr';                        {  atom contains one Fixed - refresh rate in Hz }
  2759.     kQTVOPixelType                = 'pixl';                        {  atom contains one OSType - pixel format of mode }
  2760.     kQTVOName                    = 'name';                        {  atom contains string (no length byte) - name of modefor display to user }
  2761.     kQTVODecompressors            = 'deco';                        {  atom contains other atoms indicating supported decompressors }
  2762.                                                                 {  kQTVODecompressors sub-atoms }
  2763.     kQTVODecompressorType        = 'dety';                        {  atom contains one OSType - decompressor type code }
  2764.     kQTVODecompressorContinuous    = 'cont';                        {  atom contains one Boolean - true if this type is displayed continuously }
  2765.     kQTVODecompressorComponent    = 'cmpt';                        {  atom contains one Component - component id of decompressor }
  2766.  
  2767. {* These are QTVideoOutput procedures *}
  2768. FUNCTION QTVideoOutputGetDisplayModeList(vo: QTVideoOutputComponent; VAR outputs: QTAtomContainer): ComponentResult;
  2769.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2770.     INLINE $2F3C, $0004, $0001, $7000, $A82A;
  2771.     {$ENDC}
  2772. FUNCTION QTVideoOutputGetCurrentClientName(vo: QTVideoOutputComponent; VAR str: Str255): ComponentResult;
  2773.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2774.     INLINE $2F3C, $0004, $0002, $7000, $A82A;
  2775.     {$ENDC}
  2776. FUNCTION QTVideoOutputSetClientName(vo: QTVideoOutputComponent; str: Str255): ComponentResult;
  2777.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2778.     INLINE $2F3C, $0004, $0003, $7000, $A82A;
  2779.     {$ENDC}
  2780. FUNCTION QTVideoOutputGetClientName(vo: QTVideoOutputComponent; VAR str: Str255): ComponentResult;
  2781.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2782.     INLINE $2F3C, $0004, $0004, $7000, $A82A;
  2783.     {$ENDC}
  2784. FUNCTION QTVideoOutputBegin(vo: QTVideoOutputComponent): ComponentResult;
  2785.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2786.     INLINE $2F3C, $0000, $0005, $7000, $A82A;
  2787.     {$ENDC}
  2788. FUNCTION QTVideoOutputEnd(vo: QTVideoOutputComponent): ComponentResult;
  2789.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2790.     INLINE $2F3C, $0000, $0006, $7000, $A82A;
  2791.     {$ENDC}
  2792. FUNCTION QTVideoOutputSetDisplayMode(vo: QTVideoOutputComponent; displayModeID: LONGINT): ComponentResult;
  2793.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2794.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  2795.     {$ENDC}
  2796. FUNCTION QTVideoOutputGetDisplayMode(vo: QTVideoOutputComponent; VAR displayModeID: LONGINT): ComponentResult;
  2797.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2798.     INLINE $2F3C, $0004, $0008, $7000, $A82A;
  2799.     {$ENDC}
  2800. FUNCTION QTVideoOutputCustomConfigureDisplay(vo: QTVideoOutputComponent; filter: ModalFilterUPP): ComponentResult;
  2801.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2802.     INLINE $2F3C, $0004, $0009, $7000, $A82A;
  2803.     {$ENDC}
  2804. FUNCTION QTVideoOutputSaveState(vo: QTVideoOutputComponent; VAR state: QTAtomContainer): ComponentResult;
  2805.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2806.     INLINE $2F3C, $0004, $000A, $7000, $A82A;
  2807.     {$ENDC}
  2808. FUNCTION QTVideoOutputRestoreState(vo: QTVideoOutputComponent; state: QTAtomContainer): ComponentResult;
  2809.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2810.     INLINE $2F3C, $0004, $000B, $7000, $A82A;
  2811.     {$ENDC}
  2812. FUNCTION QTVideoOutputGetGWorld(vo: QTVideoOutputComponent; VAR gw: GWorldPtr): ComponentResult;
  2813.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2814.     INLINE $2F3C, $0004, $000C, $7000, $A82A;
  2815.     {$ENDC}
  2816. FUNCTION QTVideoOutputGetGWorldParameters(vo: QTVideoOutputComponent; VAR baseAddr: Ptr; VAR rowBytes: LONGINT; VAR colorTable: CTabHandle): ComponentResult;
  2817.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2818.     INLINE $2F3C, $000C, $000D, $7000, $A82A;
  2819.     {$ENDC}
  2820. FUNCTION QTVideoOutputGetIndSoundOutput(vo: QTVideoOutputComponent; index: LONGINT; VAR outputComponent: Component): ComponentResult;
  2821.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2822.     INLINE $2F3C, $0008, $000E, $7000, $A82A;
  2823.     {$ENDC}
  2824. FUNCTION QTVideoOutputGetClock(vo: QTVideoOutputComponent; VAR clock: ComponentInstance): ComponentResult;
  2825.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2826.     INLINE $2F3C, $0004, $000F, $7000, $A82A;
  2827.     {$ENDC}
  2828. FUNCTION QTVideoOutputSetEchoPort(vo: QTVideoOutputComponent; echoPort: CGrafPtr): ComponentResult;
  2829.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2830.     INLINE $2F3C, $0004, $0010, $7000, $A82A;
  2831.     {$ENDC}
  2832. { UPP call backs }
  2833.  
  2834. CONST
  2835.     uppDataHCompletionProcInfo = $00000BC0;
  2836.     uppVdigIntProcInfo = $000003C0;
  2837.     uppSGDataProcInfo = $003BFFE0;
  2838.     uppSGModalFilterProcInfo = $00003FD0;
  2839.     uppSGGrabBottleProcInfo = $00000EF0;
  2840.     uppSGGrabCompleteBottleProcInfo = $00003EF0;
  2841.     uppSGDisplayBottleProcInfo = $0000FEF0;
  2842.     uppSGCompressBottleProcInfo = $00000EF0;
  2843.     uppSGCompressCompleteBottleProcInfo = $0000FEF0;
  2844.     uppSGAddFrameBottleProcInfo = $0003FEF0;
  2845.     uppSGTransferFrameBottleProcInfo = $0000FEF0;
  2846.     uppSGGrabCompressCompleteBottleProcInfo = $0000FFF0;
  2847.     uppSGDisplayCompressBottleProcInfo = $0003FFF0;
  2848.  
  2849. FUNCTION NewDataHCompletionProc(userRoutine: DataHCompletionProcPtr): DataHCompletionUPP;
  2850.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2851.     INLINE $2E9F;
  2852.     {$ENDC}
  2853.  
  2854. FUNCTION NewVdigIntProc(userRoutine: VdigIntProcPtr): VdigIntUPP;
  2855.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2856.     INLINE $2E9F;
  2857.     {$ENDC}
  2858.  
  2859. FUNCTION NewSGDataProc(userRoutine: SGDataProcPtr): SGDataUPP;
  2860.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2861.     INLINE $2E9F;
  2862.     {$ENDC}
  2863.  
  2864. FUNCTION NewSGModalFilterProc(userRoutine: SGModalFilterProcPtr): SGModalFilterUPP;
  2865.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2866.     INLINE $2E9F;
  2867.     {$ENDC}
  2868.  
  2869. FUNCTION NewSGGrabBottleProc(userRoutine: SGGrabBottleProcPtr): SGGrabBottleUPP;
  2870.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2871.     INLINE $2E9F;
  2872.     {$ENDC}
  2873.  
  2874. FUNCTION NewSGGrabCompleteBottleProc(userRoutine: SGGrabCompleteBottleProcPtr): SGGrabCompleteBottleUPP;
  2875.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2876.     INLINE $2E9F;
  2877.     {$ENDC}
  2878.  
  2879. FUNCTION NewSGDisplayBottleProc(userRoutine: SGDisplayBottleProcPtr): SGDisplayBottleUPP;
  2880.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2881.     INLINE $2E9F;
  2882.     {$ENDC}
  2883.  
  2884. FUNCTION NewSGCompressBottleProc(userRoutine: SGCompressBottleProcPtr): SGCompressBottleUPP;
  2885.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2886.     INLINE $2E9F;
  2887.     {$ENDC}
  2888.  
  2889. FUNCTION NewSGCompressCompleteBottleProc(userRoutine: SGCompressCompleteBottleProcPtr): SGCompressCompleteBottleUPP;
  2890.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2891.     INLINE $2E9F;
  2892.     {$ENDC}
  2893.  
  2894. FUNCTION NewSGAddFrameBottleProc(userRoutine: SGAddFrameBottleProcPtr): SGAddFrameBottleUPP;
  2895.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2896.     INLINE $2E9F;
  2897.     {$ENDC}
  2898.  
  2899. FUNCTION NewSGTransferFrameBottleProc(userRoutine: SGTransferFrameBottleProcPtr): SGTransferFrameBottleUPP;
  2900.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2901.     INLINE $2E9F;
  2902.     {$ENDC}
  2903.  
  2904. FUNCTION NewSGGrabCompressCompleteBottleProc(userRoutine: SGGrabCompressCompleteBottleProcPtr): SGGrabCompressCompleteBottleUPP;
  2905.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2906.     INLINE $2E9F;
  2907.     {$ENDC}
  2908.  
  2909. FUNCTION NewSGDisplayCompressBottleProc(userRoutine: SGDisplayCompressBottleProcPtr): SGDisplayCompressBottleUPP;
  2910.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2911.     INLINE $2E9F;
  2912.     {$ENDC}
  2913.  
  2914. PROCEDURE CallDataHCompletionProc(request: Ptr; refcon: LONGINT; err: OSErr; userRoutine: DataHCompletionUPP);
  2915.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2916.     INLINE $205F, $4E90;
  2917.     {$ENDC}
  2918.  
  2919. PROCEDURE CallVdigIntProc(flags: LONGINT; refcon: LONGINT; userRoutine: VdigIntUPP);
  2920.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2921.     INLINE $205F, $4E90;
  2922.     {$ENDC}
  2923.  
  2924. FUNCTION CallSGDataProc(c: SGChannel; p: Ptr; len: LONGINT; VAR offset: LONGINT; chRefCon: LONGINT; time: TimeValue; writeType: INTEGER; refCon: LONGINT; userRoutine: SGDataUPP): OSErr;
  2925.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2926.     INLINE $205F, $4E90;
  2927.     {$ENDC}
  2928.  
  2929. FUNCTION CallSGModalFilterProc(theDialog: DialogPtr; {CONST}VAR theEvent: EventRecord; VAR itemHit: INTEGER; refCon: LONGINT; userRoutine: SGModalFilterUPP): BOOLEAN;
  2930.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2931.     INLINE $205F, $4E90;
  2932.     {$ENDC}
  2933.  
  2934. FUNCTION CallSGGrabBottleProc(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT; userRoutine: SGGrabBottleUPP): ComponentResult;
  2935.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2936.     INLINE $205F, $4E90;
  2937.     {$ENDC}
  2938.  
  2939. FUNCTION CallSGGrabCompleteBottleProc(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; refCon: LONGINT; userRoutine: SGGrabCompleteBottleUPP): ComponentResult;
  2940.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2941.     INLINE $205F, $4E90;
  2942.     {$ENDC}
  2943.  
  2944. FUNCTION CallSGDisplayBottleProc(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGDisplayBottleUPP): ComponentResult;
  2945.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2946.     INLINE $205F, $4E90;
  2947.     {$ENDC}
  2948.  
  2949. FUNCTION CallSGCompressBottleProc(c: SGChannel; bufferNum: INTEGER; refCon: LONGINT; userRoutine: SGCompressBottleUPP): ComponentResult;
  2950.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2951.     INLINE $205F, $4E90;
  2952.     {$ENDC}
  2953.  
  2954. FUNCTION CallSGCompressCompleteBottleProc(c: SGChannel; bufferNum: INTEGER; VAR done: BOOLEAN; VAR ci: SGCompressInfo; refCon: LONGINT; userRoutine: SGCompressCompleteBottleUPP): ComponentResult;
  2955.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2956.     INLINE $205F, $4E90;
  2957.     {$ENDC}
  2958.  
  2959. FUNCTION CallSGAddFrameBottleProc(c: SGChannel; bufferNum: INTEGER; atTime: TimeValue; scale: TimeScale; {CONST}VAR ci: SGCompressInfo; refCon: LONGINT; userRoutine: SGAddFrameBottleUPP): ComponentResult;
  2960.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2961.     INLINE $205F, $4E90;
  2962.     {$ENDC}
  2963.  
  2964. FUNCTION CallSGTransferFrameBottleProc(c: SGChannel; bufferNum: INTEGER; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGTransferFrameBottleUPP): ComponentResult;
  2965.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2966.     INLINE $205F, $4E90;
  2967.     {$ENDC}
  2968.  
  2969. FUNCTION CallSGGrabCompressCompleteBottleProc(c: SGChannel; VAR done: BOOLEAN; VAR ci: SGCompressInfo; VAR t: TimeRecord; refCon: LONGINT; userRoutine: SGGrabCompressCompleteBottleUPP): ComponentResult;
  2970.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2971.     INLINE $205F, $4E90;
  2972.     {$ENDC}
  2973.  
  2974. FUNCTION CallSGDisplayCompressBottleProc(c: SGChannel; dataPtr: Ptr; desc: ImageDescriptionHandle; VAR mp: MatrixRecord; clipRgn: RgnHandle; refCon: LONGINT; userRoutine: SGDisplayCompressBottleUPP): ComponentResult;
  2975.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  2976.     INLINE $205F, $4E90;
  2977.     {$ENDC}
  2978.  
  2979. {$ALIGN RESET}
  2980. {$POP}
  2981.  
  2982. {$SETC UsingIncludes := QuickTimeComponentsIncludes}
  2983.  
  2984. {$ENDC} {__QUICKTIMECOMPONENTS__}
  2985.  
  2986. {$IFC NOT UsingIncludes}
  2987.  END.
  2988. {$ENDC}
  2989.